-
Notifications
You must be signed in to change notification settings - Fork 431
37 lines (35 loc) · 949 Bytes
/
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
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: release
jobs:
build:
name: tag release
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install go
uses: actions/[email protected]
with:
go-version: '^1.20'
- name: generate release artifacts
run: |
make release
- name: generate release notes
run: |
make release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: out/*
body_path: _releasenotes/release-notes-${{ env.RELEASE_TAG }}.md