Skip to content

Commit 08ec6f0

Browse files
Create release.yml
1 parent a61cc8f commit 08ec6f0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install MinGW-w64
16+
run: choco install mingw -y
17+
18+
- name: Set PATH for MinGW
19+
run: echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" >> $env:GITHUB_PATH
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.24'
25+
26+
- name: Build
27+
run: go build -v -o Captr_Release_{{ github.ref_name }}.exe
28+
29+
- name: Upload Release
30+
uses: softprops/action-gh-release@v2
31+
with:
32+
files: Captr_Release_{{ github.ref_name }}.exe
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)