-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.05 KB
/
go-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Go Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
container:
image: ghcr.io/ryanjarv/xcgo:master@sha256:4db5d37a4762e6a074eb2f85c7267d521ddd9857b69467feaa56465f8375742a
volumes:
- ${{ github.workspace }}:/${{ github.workspace }}
defaults:
run:
shell: bash
working-directory: ${{ github.workspace }}
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
stable: 'true'
go-version: 1.18.0
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Upload assets
uses: actions/upload-artifact@v2
with:
name: myapp
path: dist/*