Skip to content

Commit

Permalink
Update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvob committed Feb 4, 2023
1 parent a97908c commit 3327869
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
- uses: actions/setup-go@v3
with:
go-version: '1.20'

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build
run: go build ./...
Expand All @@ -39,15 +39,17 @@ jobs:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/setup-go@v1
- uses: actions/setup-go@v3
with:
go-version: '1.20'

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Release
- uses: goreleaser/goreleaser-action@v4
name: Run GoReleaser
with:
distribution: goreleaser
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo snap install goreleaser --classic
goreleaser release

0 comments on commit 3327869

Please sign in to comment.