Skip to content

Commit

Permalink
ci: added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshRitesh12 committed Aug 2, 2023
1 parent e05b90c commit 0d91f86
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 0d91f86

Please sign in to comment.