-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.12 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
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release - Automatic Versioning
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: Create New Version
uses: TriPSs/conventional-changelog-action@v3.17.0
id: changelog
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
git-message: 'release: {version}'
git-user-name: ${{ secrets.USERNAME }}
git-user-email: ${{ secrets.EMAIL }}
tag-prefix: ''
output-file: 'CHANGELOG.md'
release-count: 0
skip-version-file: 'true'
skip-commit: 'false'
- name: Create Release
uses: ncipollo/release-action@v1.11.1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
token: ${{ secrets.ACCESS_TOKEN }}