ci: added release workflow

This commit is contained in:
Ritesh Ghosh
2023-08-02 21:05:30 +05:30
parent e05b90c7a3
commit 0d91f864bd
+29
View File
@@ -0,0 +1,29 @@
name: Releases
on:
push:
branches: ["main"]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkouts repo
uses: actions/checkout@v2
# create release info and push it upstream
- name: Conventional changelog action
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.CHANGELOG_SECRET }}
- name: Create release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.CHANGELOG_SECRET }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}