Skip to content

Commit a2cea93

Browse files
committed
feat: Auto versioning, change log, and release
Update and rename release.yml to version_changelog_release.yml
1 parent 8e5c49e commit a2cea93

File tree

2 files changed

+43
-51
lines changed

2 files changed

+43
-51
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will auto-version when pull-requests are merged to main.
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Version Change Release
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
vcr:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Git checkout
21+
uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.AMM }}
24+
fetch-depth: 0
25+
26+
- name: Conventional Changelog Action
27+
id: changelog
28+
uses: TriPSs/[email protected]
29+
with:
30+
github-token: ${{ secrets.AMM }}
31+
version-file: 'VERSION.json'
32+
release-count: 0
33+
git-message: ${{ github.event.head_commit.message }}
34+
35+
- name: Create Release
36+
uses: actions/create-release@v1
37+
if: ${{ steps.changelog.outputs.skipped == 'false' }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.AMM }}
40+
with:
41+
tag_name: ${{ steps.changelog.outputs.tag }}
42+
release_name: ${{ steps.changelog.outputs.tag }}
43+
body: ${{ steps.changelog.outputs.clean_changelog }}

0 commit comments

Comments
 (0)