-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (33 loc) · 942 Bytes
/
release.yml
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
# Copyright Contributors to the Open Cluster Management project
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
name: Create Release
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Ref: https://github.com/actions/checkout/issues/290
- name: Fetch annotated tag
run: |
git fetch origin ${{ github.ref }}:${{ github.ref }} --tags --force
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Build project
run: |
make build-release
- name: Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build_output/*-PolicyGenerator*
generate_release_notes: true
draft: true
prerelease: false