Skip to content

ci: fix permissions and update setup-go to v5 #30

ci: fix permissions and update setup-go to v5

ci: fix permissions and update setup-go to v5 #30

Workflow file for this run

name: Release plugin to GitHub
on:
push:
tags:
- "v*"
jobs:
release:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install GoReleaser & publish
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}