-
-
Notifications
You must be signed in to change notification settings - Fork 96
37 lines (34 loc) · 999 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
name: Create Release 📦
on:
push:
tags:
- "*.*.*"
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Read release notes preface
id: release_preface
uses: bluwy/substitute-string-action@v1
with:
_input-file: .github/RELEASE_TEMPLATE.md
_format-key: '{key}'
RELEASE_TAG: ${{ github.ref_name }}
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
prerelease: true
body: |
${{ steps.release_preface.outputs.result }}
${{ steps.extract-release-notes.outputs.release_notes }}