bump to go 1.23 to fix cve (fixes #973) (#983) #1
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: "Build release artifacts" | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Get version from tag | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
run: echo "TRAVIS_TAG=${{ github.ref_name }}" >> $GITHUB_ENV | |
- run: make release | |
- run: make dgoss-sha256 dcgoss-sha256 kgoss-sha256 | |
- name: "Upload binary as artifact" | |
uses: actions/upload-artifact@v4 | |
with: | |
retention-days: 5 | |
if-no-files-found: error | |
name: build | |
path: | | |
release/* | |
extras/*/*goss | |
extras/*/*goss.sha256 | |
attach-assets: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
needs: ["build"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch all binaries | |
uses: actions/download-artifact@v4 | |
- name: Attach to release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: build/** | |
fail_on_unmatched_files: true |