Merge pull request #1002 from davidxia/webhook-name #5
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: Upload binaries to release | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 (not envtest-*) | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Upload binaries to release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set env | |
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: Check out code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7 | |
- name: Calculate go version | |
id: vars | |
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT | |
- name: Set up Go | |
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # tag=v5.0.2 | |
with: | |
go-version: ${{ steps.vars.outputs.go_version }} | |
- name: Generate release binaries | |
run: | | |
make release-controller-gen | |
- name: Release | |
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # tag=v2.0.8 | |
with: | |
draft: false | |
files: out/* |