-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.16 KB
/
release.yaml
File metadata and controls
38 lines (35 loc) · 1.16 KB
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
name: Releases
on:
workflow_dispatch:
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PA_TOKEN }}
- name: conventional changelog action
id: changelog
# https://github.com/TriPSs/conventional-changelog-action
uses: TriPSs/conventional-changelog-action@latest
with:
# you can also create separate token to trace action
github-token: '${{ secrets.PA_TOKEN }}'
git-user-name: 'AR mac Bot'
output-file: false
- name: create release
# https://github.com/actions/create-release
uses: softprops/action-gh-release@v1
if: ${{steps.changelog.outputs.skipped == 'false'}}
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{steps.changelog.outputs.clean_changelog}}
draft: false
prerelease: false