Skip to content

Commit 50ba029

Browse files
committed
added CI/CD
1 parent 24580d3 commit 50ba029

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
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

Comments
 (0)