Skip to content

Tweak release template. (#176) #12

Tweak release template. (#176)

Tweak release template. (#176) #12

Workflow file for this run

name: goreleaser
on:
push:
tags:
- 'v1.**'
permissions:
contents: write
# packages: write
# issues: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: go dependency
uses: actions/[email protected]
with:
go-version-file: 'go.mod'
- name: Setup QEMU (docker multi-arch dependency)
uses: docker/setup-qemu-action@v2
- name: Setup Docker Buildx (docker multi-arch dependency)
uses: docker/setup-buildx-action@v2
- name: dockerhub-login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}