Add goreleaser workflow (#257)

This commit is contained in:
Christian Muehlhaeuser 2021-03-09 13:27:02 +01:00 committed by GitHub
parent 1f6e2ff187
commit a5d4a512b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

34
.github/workflows/goreleaser.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: goreleaser
on:
pull_request:
push:
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ~1.16
-
name: Set up Snapcraft
env:
SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
snapcraft login --with <(echo "$SNAPCRAFT_LOGIN")
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --skip-publish --skip-sign --rm-dist