Skip to content

Commit

Permalink
Also bump goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Apr 24, 2022
1 parent 236c140 commit 43cc38d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,30 @@ jobs:
- name: Run acceptance tests
run: behave

test_release:
name: Test release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Unshallow
run: git fetch --prune --unshallow

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Validate Goreleaser config
uses: goreleaser/goreleaser-action@v2
with:
version: v1.8.3
args: check

- name: Build Goreleaser snapshot release
uses: goreleaser/goreleaser-action@v2
with:
version: v1.8.3
args: release --rm-dist --skip-publish --snapshot
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all

- name: Docker login
if: success() && startsWith(github.ref, 'refs/tags/')
Expand All @@ -31,9 +36,9 @@ jobs:
echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u helmich-bot --password-stdin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v2
with:
version: v1.0.0
version: v1.8.3
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.githubToken }}

0 comments on commit 43cc38d

Please sign in to comment.