-
Notifications
You must be signed in to change notification settings - Fork 76
42 lines (36 loc) · 1.22 KB
/
draft-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Draft Release
on:
push:
# Build and publish artifacts when new tag is created for release
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.7
- name: Build Release Artifacts
run: IMG="projects.registry.vmware.com/cluster_api_provider_bringyourownhost/cluster-api-byoh-controller:${{ github.ref_name }}" make build-release-artifacts
- name: Publish Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: |
_dist/byoh-hostagent-linux-amd64
_dist/cluster-template.yaml
_dist/cluster-template-topology.yaml
_dist/clusterclass-quickstart.yaml
_dist/cluster-template-docker.yaml
_dist/cluster-template-topology-docker.yaml
_dist/clusterclass-quickstart-docker.yaml
_dist/infrastructure-components.yaml
_dist/metadata.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}