Skip to content

Fix go versions

Fix go versions #63

Workflow file for this run

name: Release 📦
on:
push:
tags:
- '*'
branches:
- 'main'
permissions:
contents: write
jobs:
goreleaser:
name: Publish go releases 📦 with Goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup-go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}