-
-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (31 loc) · 1016 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
37
name: Worshop Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build-upload-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get version from tag
id: version
run: echo ::set-output name=number::$(echo $GITHUB_REF | cut -d / -f 3 | cut -d / -f 3 | sed -e 's/^v//')
- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_types: other,doc,chore
config_file: .github/tag-changelog-config.js
- name: Parse changelog markdown to HTML
id: changelog-html
uses: lifepal/[email protected]
with:
text: ${{ steps.changelog.outputs.changelog }}
- name: Release to GitHub releasesc
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog.outputs.changes }}
fail_on_unmatched_files: true
tag_name: ${{ steps.version.outputs.number }}