-
Notifications
You must be signed in to change notification settings - Fork 49
72 lines (70 loc) · 2.23 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Create release
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
name: "🚀 Release"
runs-on: ubuntu-latest
steps:
- name: "Check-out"
uses: actions/checkout@v1
- name: "Update Release CHANGELOG"
id: update-release-changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: true
stripHeaders: false
base: "CHANGELOG.md"
headerLabel: "# Changelog"
breakingLabel: '### Breaking'
enhancementLabel: '### Enhancements'
stripGeneratorNotice: true
bugsLabel: '### Fixes'
issues: false
issuesWoLabels: false
pullRequests: true
prWoLabels: true
author: false
verbose: true
- name: Commit CHANGELOG Changes
run: |
git add .
git config user.name "zihe.jia"
git config user.email "[email protected]"
git commit -m "Update CHANGELOG"
- name: Push CHANGELOG changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
force: true
- name: "Prepare for the Github Release"
id: generate-release-changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
output: "output.md"
headerLabel: "# Changelog"
onlyLastTag: true
stripHeaders: false
breakingLabel: '### Breaking'
enhancementLabel: '### Enhancements'
stripGeneratorNotice: true
bugsLabel: '### Fixes'
issues: false
issuesWoLabels: false
pullRequests: true
prWoLabels: true
author: false
verbose: true
- name: "🚀 Create GitHub Release"
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.generate-release-changelog.outputs.changelog }}