Skip to content

chore(github): token permissions #3

chore(github): token permissions

chore(github): token permissions #3

Workflow file for this run

name: release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: release
runs-on: [ubuntu-latest]
steps:
- name: checkout the code
uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v4
with:
go-version: '1.22.x'
- name: unshallow
run: git fetch --prune --unshallow
- name: run goreleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}