Skip to content

Mark 0.0.2

Mark 0.0.2 #26

Workflow file for this run

---
name: Build binaries
on:
release:
types: [created, edited]
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
name: Build binaries
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.22.3'
- run: go fmt
- uses: goreleaser/goreleaser-action@v6
if: ${{ github.event_name == 'pull_request' }}
with:
version: 2.3.2
args: build --snapshot
- uses: actions/upload-artifact@v3
with:
path: |
./dist/*
- uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'release' }}
with:
version: 2.3.2
args: release --rm-dist