We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24580d3 commit 50ba029Copy full SHA for 50ba029
.github/workflows/release.yaml
@@ -0,0 +1,32 @@
1
+name: create release on tag
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
8
+jobs:
9
+ build_release:
10
+ name: build_release
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: checkout
14
+ uses: actions/checkout@v3
15
+ with:
16
+ fetch-depth: 0
17
18
+ - uses: actions/setup-go@v3
19
20
+ go-version-file: "go.mod"
21
+ - run: env GOOS=linux GOARCH=amd64 go build -o dly-linux-amd64 .
22
+ - run: env GOOS=windows GOARCH=amd64 go build -o dly-windows-amd64.exe .
23
24
+ - name: release
25
+ uses: softprops/action-gh-release@v1
26
27
+ files: |
28
+ dly-windows-amd64.exe
29
+ dly-linux-amd64
30
+ generate_release_notes: true
31
+ env:
32
+ GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
0 commit comments