Add goreleaser #1
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: release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Print params | |
run: echo "Releasing Declutter CLI ${{ github.event.inputs.tag }}" | |
- name: Check tag version format | |
uses: nowsprinting/[email protected] | |
with: | |
prefix: "v" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |