Skip to content

Release

Release #69

Workflow file for this run

# This uses an action (crazy-max/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
# You will need to pass the `--batch` flag to `gpg` in your signing step
# in `goreleaser` to indicate this is being used in a non-interactive mode.
#
name: Release
on:
workflow_dispatch:
push:
branches:
- 'main'
tags-ignore:
- '**'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
- name: Set up Go
if: steps.release.outputs.new_release_published == 'true'
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Get dependencies
run: |
go mod download
- name: Build
run: |
make lint
go build