-
-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (32 loc) · 1005 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
name: Create Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v0.4.4
jobs:
test:
runs-on: ubuntu-18.04
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease)
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false