Skip to content

Commit

Permalink
👷 build(relase): test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioguilherme1 committed Apr 25, 2024
1 parent 78030b3 commit 6c711a9
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/Relase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,22 @@ on:
- main

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
Release:
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
- name: Install dependencies
run: pip install --upgrade pip && pip install cz-conventional-gitmoji commitizen

- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
fetch-depth: 50
- uses: fregante/release-with-changelog@v3
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: chagelog.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "chagelog.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
exclude: '^Meta'
commit-template: '- {title} ← {hash}'
template: |
### Changelog
{commits}
{range}

0 comments on commit 6c711a9

Please sign in to comment.