Skip to content

Merge pull request #2007 from metal3-io-bot/cherry-pick-2000-to-relea… #64

Merge pull request #2007 from metal3-io-bot/cherry-pick-2000-to-relea…

Merge pull request #2007 from metal3-io-bot/cherry-pick-2000-to-relea… #64

Workflow file for this run

name: release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*"
permissions: {}
jobs:
build:
name: tag release
runs-on: ubuntu-latest
permissions:
contents: write
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
steps:
- name: Export RELEASE_TAG var
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Install go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
- name: Generate release artifacts and notes
run: |
make release
- name: Release
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
draft: true
files: out/*
body_path: releasenotes/${{ env.RELEASE_TAG }}.md