-
Notifications
You must be signed in to change notification settings - Fork 166
30 lines (28 loc) · 1013 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
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Get the release version from the tag
shell: bash
if: env.RELEASE_VERSION == ''
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Generate Release Notes
run: |
./.github/workflows/release-notes.mjs ${{ env.RELEASE_VERSION }}
cat notes-${{ env.RELEASE_VERSION }}.md
- name: Create Release for Tag
id: release_tag
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
body_path: notes-${{ env.RELEASE_VERSION }}.md