feat: add ability to link monitorv2 to shared actions (#134) #497
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 }} |