Skip to content

goreleaser: use name_template instead of the now-deprecated 'replacem… #58

goreleaser: use name_template instead of the now-deprecated 'replacem…

goreleaser: use name_template instead of the now-deprecated 'replacem… #58

Workflow file for this run

name: release
on:
push:
tags:
- "*"
defaults:
run:
working-directory: ./v2
permissions:
contents: read
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
goreleaser.com:443
objects.githubusercontent.com:443
proxy.golang.org:443
storage.googleapis.com:443
uploads.github.com:443
sum.golang.org:443
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: 1.18
- name: Run GoReleaser
timeout-minutes: 60
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7
with:
distribution: goreleaser
version: latest
args: release --clean --config ../.goreleaser.yaml
workdir: ./v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}