Skip to content

Commit 10a174c

Browse files
authored
Create go.yml
1 parent 64bd7b4 commit 10a174c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/go.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.18
20+
21+
- name: Build-Macos
22+
run: GOOS=darwin GOARCH=amd64 go build -o ./dist/macos_amd64
23+
24+
- name: Create GitHub release
25+
uses: marvinpinto/action-automatic-releases@latest
26+
with:
27+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
28+
automatic_release_tag: ${{ env.ReleaseVersion }}
29+
title: ${{ env.ReleaseVersion }}
30+
prerelease: false
31+
files: |
32+
artifacts/packages/*

0 commit comments

Comments
 (0)