Merge pull request #122 from ryanrf/master #4
Workflow file for this run
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: | |
push: | |
tags: | |
- v* | |
env: | |
GO_VERSION: '1.21' | |
# Request permissions to write (edit, create) new releases | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup golang ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: go build -v . | |
- name: Import test GPG key | |
run: gpg --import test/testing-key.pgp | |
- name: Test | |
run: make test | |
- name: Crossbuild | |
run: make crossbuild | |
- name: Release | |
run: make release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |