Skip to content

Create Release

Create Release #4

Workflow file for this run

# Copyright Contributors to the Open Cluster Management project
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
env:
GO_VERSION: '1.20'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Check version
run: |
cat VERSION.txt | grep ${{ github.ref_name }}
- name: Build project
run: |
make build-bin
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
bin/clusteradm_darwin_amd64.tar.gz
bin/clusteradm_darwin_arm64.tar.gz
bin/clusteradm_linux_amd64.tar.gz
bin/clusteradm_linux_arm64.tar.gz
bin/clusteradm_linux_ppc64le.tar.gz
bin/clusteradm_linux_s390x.tar.gz
bin/clusteradm_windows_amd64.zip
draft: true
prerelease: false
generate_release_notes: true