Bump Go to 1.21.5 and check release build in CI #19
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
on: | |
pull_request: {} | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Release | |
jobs: | |
build: | |
name: Create Release ${{ github.event_name == 'pull_request' && '(dry-run)' }} | |
if: github.repository == 'cilium/pwru' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: 1.21.5 | |
- name: Generate the artifacts | |
run: make release | |
- name: Create Release | |
if: github.event_name == 'push' | |
id: create_release | |
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: true # turn this to false once release notes are automatically added | |
prerelease: false | |
body: | | |
Note for maintainers:: Please update the description with the actual release notes (see RELEASE.md for instructions). | |
- name: Upload the artifacts | |
id: upload-release-artifacts | |
uses: skx/github-action-publish-binaries@b9ca5643b2f1d7371a6cba7f35333f1461bbc703 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
releaseId: ${{ steps.create_release.outputs.id }} | |
args: 'release/*' |