chore: update release action #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: write-all | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Pull the Repository | |
run: | | |
git config user.name mauprogramador | |
git config user.email sir.silvabmauricio@gmail.com | |
git config github.token ${{ secrets.GITHUB_TOKEN }} | |
git pull origin master | |
git fetch --tags -f | |
- name: Create Changelog | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@latest | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
git-user-name: mauprogramador | |
git-user-email: sir.silvabmauricio@gmail.com | |
git-branch: master | |
skip-git-pull: true | |
skip-on-empty: false | |
# release-count: 0 | |
version-file: "./pyproject.toml" | |
version-path: tool.poetry.version | |
- name: Create GitHub Release | |
id: create_release | |
# uses: "marvinpinto/action-automatic-releases@latest" | |
# with: | |
# repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# prerelease: false | |
# title: Release ${{ github.ref }} | |
uses: actions/create-release@v1 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
release_name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
draft: false | |
prerelease: false |