-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1 KB
/
auto_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
name: Automatic Semantic Release
on:
# workflow_dispatch # manual-only for testing
push:
branches:
- main
jobs:
new-release:
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Checkout code
uses: actions/checkout@v4 # Checkout our working repository
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
output-file: 'CHANGELOG.md'
- name: Verify Changelog Output
run: echo ${{ steps.changelog.outputs.skipped }}
- name: Create Release # This action will create the actual release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}