Skip to content

Add GoReleaser workflow and change homebrew tap repo #1

Add GoReleaser workflow and change homebrew tap repo

Add GoReleaser workflow and change homebrew tap repo #1

Workflow file for this run

name: Release
on:
push:
branches: ["master"]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Determine version
id: version
uses: silphid/actions/get-version@master
- name: Setup go environment
uses: actions/[email protected]
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Tag commit
uses: silphid/actions/tag-commit@v1
with:
tag: ${{ steps.version.outputs.git-tag }}
- name: Release
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}