Skip to content

Commit 65df764

Browse files
authored
Create go.yml
1 parent c01eb8c commit 65df764

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/go.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: '1.20'
23+
24+
- name: Build
25+
run: make tar.gz
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
body_path: ${{ github.workspace }}-CHANGELOG.txt
32+
repository: greycodee/tmcmd
33+
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
34+
files: |
35+
bin/darwin-arm64-tmcmd.tar.gz
36+
bin/darwin-intel-tmcmd.tar.gz
37+
bin/linux-arm64-tmcmd.tar.gz
38+
bin/linux-amd64-tmcmd.tar.gz
39+
bin/windows-amd64-tmcmd.zip

0 commit comments

Comments
 (0)