version bump #2
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: Publish | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
permissions: read-all | |
jobs: | |
github-release: | |
name: GitHub Release | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write # To create a GitHub Release | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Verify action checksums | |
env: | |
JOB: ${{ github.job }} | |
WORKFLOW: ${{ github.workflow_ref }} | |
run: | | |
WORKFLOW=$(echo "$WORKFLOW" | cut -d '@' -f 1 | cut -d '/' -f 3-5) | |
go run ./cmd/ghasum verify -cache /home/runner/work/_actions "$WORKFLOW:$JOB" | |
- name: Get release version | |
id: version | |
shell: bash | |
run: echo "value=${GITHUB_REF#refs/tags/}" >>"${GITHUB_OUTPUT}" | |
- name: Compile | |
run: go run tasks.go build-all | |
- name: Create GitHub release | |
uses: ncipollo/[email protected] | |
with: | |
tag: ${{ steps.version.outputs.value }} | |
name: Release ${{ steps.version.outputs.value }} | |
body: ${{ steps.version.outputs.value }} | |
artifacts: ./_compiled/* |