Create write permission #3
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 | |
permissions: | |
actions: write | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'releases/**' | |
jobs: | |
run: | |
name: Bump and release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install Hatch | |
run: pip install --upgrade hatch | |
- name: Bump version | |
run: hatch version minor | |
- name: Commit version bumb | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git commit -am "Automatic minor version bump" | |
git push | |
- name: build | |
run: hatch build | |
- name: release | |
run: hatch release |