Prepare release 0.5.0 #7
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: | |
branches: | |
- main | |
tags: | |
- v* | |
paths: | |
- "!.github/**" | |
release: | |
types: [published] | |
workflow_dispatch: | |
permissions: | |
contents: write # needed to write releases | |
packages: write # needed for ghcr access | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Prepare | |
run: make promu | |
- name: Test and build | |
run: make | |
- name: Build | |
run: promu crossbuild | |
- name: Build tarballs | |
run: promu crossbuild tarballs | |
- name: Checksum tarballs | |
run: promu checksum .tarballs | |
- name: Release tarballs | |
run: promu release .tarballs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: binaries | |
path: .build/ |