Skip to content

Merge pull request #1499 from Nordix/ipam-uplift-1-5-moshiur #50

Merge pull request #1499 from Nordix/ipam-uplift-1-5-moshiur

Merge pull request #1499 from Nordix/ipam-uplift-1-5-moshiur #50

Workflow file for this run

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*"
name: release
permissions:
contents: read
jobs:
build:
permissions:
contents: write
name: tag release
# This workflow is only of value to the metal3-io/cluster-api-provider-metal3 repository and
# would always fail in forks
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
runs-on: ubuntu-latest
steps:
- name: Export RELEASE_TAG var
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Install go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.20'
- name: Generate release artifacts and notes
run: |
make release
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
draft: true
files: out/*
body_path: releasenotes/${{ env.RELEASE_TAG }}.md