Skip to content

Commit

Permalink
💚 ci(Relase-CI): Create CI autoconfig relase in github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioguilherme1 committed Apr 24, 2024
1 parent 5f017d4 commit b8f870f
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/Relase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bump version

on:
push:
branches:
- master

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170 changes: 169 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ blue = "^0.9.1"
isort = "^5.13.2"
taskipy = "^1.12.2"
setuptools = "^69.5.1"
cz-conventional-gitmoji = "^0.3.0"
commitizen = "^3.24.0"


[tool.poetry.group.doc.dependencies]
Expand All @@ -45,11 +47,13 @@ termynal = "^0.12.1"


[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
name = "cz_gitmoji"
tag_format = "V$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit b8f870f

Please sign in to comment.