feat: migrate to new monv2 action api (part 1: add new params) #510
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: goreleaser | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: check | |
build: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: build --clean --snapshot | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: dist/ | |
retention-days: ${{ github.event_name == 'pull_request' && 3 || 0 }} |