Skip to content

[goreleaser] specify branch name for PR (#137) #22

[goreleaser] specify branch name for PR (#137)

[goreleaser] specify branch name for PR (#137) #22

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
goreleaser:
# These permissions are needed for Goreleaser to push a branch and open a
# PR to update the tap.
permissions:
contents: write
pull-requests: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}