Skip to content

Commit 87d4aa9

Browse files
committed
chore: add github flow
1 parent 269e7da commit 87d4aa9

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # 只有以 v 开头的 tag 才会触发
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.22'
20+
21+
- name: Set up PowerShell
22+
uses: potatoqualitee/psmodulecache@v6
23+
24+
- name: Run build script
25+
shell: pwsh
26+
run: scripts/build.ps1
27+
28+
- name: Upload Release Artifacts
29+
uses: softprops/action-gh-release@v2
30+
with:
31+
files: |
32+
build/evs.exe
33+
build/evs-console.exe
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)