-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.3 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
on:
workflow_dispatch:
push:
branches:
- main
permissions: write-all
name: 📦 Publish Release
jobs:
update-changelog:
name: 📝 Manage Release Publish
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: 🔖 Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main
patchList: fix, bugfix, perf, refactor, test, test, chore
- name: 🔖 Set tag to latest commit
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.semver.outputs.next }}
tag_exists_error: false
message: ''
- name: 📝 Generate Changelog
id: changelog
uses: requarks/changelog-action@v1
with:
excludeTypes: ''
includeInvalidCommits: true
token: ${{ github.token }}
tag: ${{ steps.semver.outputs.next }}
writeToFile: false
- name: 📦 Create Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.semver.outputs.next }}
name: ${{ steps.semver.outputs.next }}
body: ${{ steps.changelog.outputs.changes }}