Skip to content

feat: Add conditions to monv2 action rules #669

feat: Add conditions to monv2 action rules

feat: Add conditions to monv2 action rules #669

Workflow file for this run

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 }}