From a5d4a512b708ecaebf872e3fea031540847bff37 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 9 Mar 2021 13:27:02 +0100 Subject: [PATCH] Add goreleaser workflow (#257) --- .github/workflows/goreleaser.yml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..e865c5a --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -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