Skip to content

Commit 27bf968

Browse files
committed
Create ci-build.yaml
1 parent 96fcdcb commit 27bf968

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci-build.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- beta
6+
- develop
7+
tags:
8+
- '[0-9]+.[0-9]+.[0-9]+'
9+
- '[0-9]+.[0-9]+.[0-9]+-*'
10+
11+
name: ci-build
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
build:
18+
name: Build Release Assets
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-go@v5
23+
24+
- name: Build for Windows
25+
env:
26+
GOOS: windows
27+
GOARCH: amd64
28+
run: go build -o app-win.exe
29+
30+
- name: Build for Linux
31+
env:
32+
GOOS: linux
33+
GOARCH: amd64
34+
run: go build -o app-linux
35+
36+
- name: Upload build artifacts
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: app-builds
40+
path: |
41+
app-win.exe
42+
app-linux

0 commit comments

Comments
 (0)