-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 903 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
#
# SPDX-License-Identifier: Apache-2.0
#
name: Create Release
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
env:
GO_VER: 1.17.3
permissions:
contents: write
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVER }}
- name: Create Binaries
run: make release
- name: Parse Tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/actions-runner-manager
generate_release_notes: true
name: ${{ steps.vars.outputs.tag }}
tag_name: ${{ steps.vars.outputs.tag }}
token: ${{ secrets.MANAGER_ADMIN_PAT }}