Merge pull request #484 from k8s-infra-cherrypick-robot/cherry-pick-4… #14
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: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
permissions: | |
contents: write # Allow to create a release. | |
jobs: | |
release: | |
name: Create draft release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set env | |
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --timeout 60m | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create draft GH release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
files: | | |
out/operator-components.yaml | |
out/package/* | |
dist/*.tar.gz | |
body: "TODO: Add release notes here." |