chore(deps): Update setuptools requirement from ~=72.2.0 to ~=75.1.0 … #42
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 version | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
contents: write | |
jobs: | |
release-version: | |
if: "!startsWith(github.event.head_commit.message, 'bump:')" | |
runs-on: ubuntu-latest | |
name: "Bump version, create changelog and release" | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Create bump and changelog | |
uses: commitizen-tools/commitizen-action@master | |
id: bump | |
with: | |
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
changelog_increment_filename: release_body.md | |
- name: Build package | |
run: | | |
python -m build | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: release_body.md | |
tag_name: ${{ env.REVISION }} | |
files: dist/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |