Debian Codegraph @

.github/workflows/goreleaser.yml

raw symbols SCIP
1 name: goreleaser
2
3 on:
4 pull_request:
5 push:
6
7 jobs:
8 goreleaser:
9 runs-on: ubuntu-latest
10 steps:
11 -
12 name: Checkout
13 uses: actions/checkout@v2
14 with:
15 fetch-depth: 0
16 -
17 name: Set up Go
18 uses: actions/setup-go@v2
19 with:
20 go-version: 1.18
21 -
22 name: Run GoReleaser
23 uses: goreleaser/goreleaser-action@v2
24 with:
25 version: latest
26 args: release --rm-dist
27 env:
28 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 -
30 name: Upload assets
31 uses: actions/upload-artifact@v2
32 if: startsWith(github.ref, 'refs/tags/')
33 with:
34 name: tplink-plug-exporter
35 path: dist/*