aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-02 21:05:30 +0530
committerRitesh Ghosh <[email protected]>2023-08-02 21:05:30 +0530
commit0d91f864bdd34423fd5922040dffb2af7726e1b4 (patch)
treeb5db02fde36e18cd7771116d1ac7c000331a3e60 /.github/workflows/release.yml
parente05b90c7a37cdcff35452ce246ca2d94600ee11e (diff)
downloadaniwatch-api-0d91f864bdd34423fd5922040dffb2af7726e1b4.tar.xz
aniwatch-api-0d91f864bdd34423fd5922040dffb2af7726e1b4.zip
ci: added release workflow
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..ffb4fef
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -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 }}