Skip to content

chore: allow goreleaser to be triggered manually #21

chore: allow goreleaser to be triggered manually

chore: allow goreleaser to be triggered manually #21

Workflow file for this run

name: goreleaser
on:
on:

Check failure on line 4 in .github/workflows/goreleaser.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/goreleaser.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
push:
branches:
- main
workflow_dispatch:
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
WITH_V: true
DEFAULT_BUMP: minor
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}