Skip to content

Commit a1b277a

Browse files
dhaiducekmprahl
authored andcommitted
Add release workflow
ref: stolostron/backlog#26085 Co-authored-by: Matt Prahl <[email protected]> Signed-off-by: Dale Haiducek <[email protected]>
1 parent a240fad commit a1b277a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright Contributors to the Open Cluster Management project
2+
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]+.[0-9]+.[0-9]+
7+
8+
name: Create Release
9+
10+
jobs:
11+
release:
12+
name: Create Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version-file: go.mod
22+
23+
- name: Build project
24+
run: |
25+
make build-release
26+
27+
- name: Release
28+
uses: softprops/[email protected]
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
files: build_output/*-PolicyGenerator*
33+
generate_release_notes: true
34+
draft: true
35+
prerelease: false

0 commit comments

Comments
 (0)