Release #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
# push the latest tag to the remote | |
- id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# refetch the repo to make sure we have the latest tag | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
go-version-file: "go.mod" | |
cache: true | |
- name: Import GPG key | |
uses: crazy-max/[email protected] | |
id: import_gpg | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
- name: Run GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
args: release --clean | |
env: | |
# GitHub sets the GITHUB_TOKEN secret automatically. | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} |