Skip to content

Commit

Permalink
Create ci-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Jan 12, 2025
1 parent 96fcdcb commit 27bf968
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- master
- beta
- develop
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-*'

name: ci-build

permissions:
contents: write

jobs:
build:
name: Build Release Assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5

- name: Build for Windows
env:
GOOS: windows
GOARCH: amd64
run: go build -o app-win.exe

- name: Build for Linux
env:
GOOS: linux
GOARCH: amd64
run: go build -o app-linux

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: app-builds
path: |
app-win.exe
app-linux

0 comments on commit 27bf968

Please sign in to comment.