bump version #17
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: Publish release | |
on: | |
push: | |
tags: | |
- "*" | |
permissions: | |
contents: read | |
jobs: | |
ghrelease: | |
name: Publish to Github | |
runs-on: ubuntu-latest | |
needs: deploy | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Publish release | |
uses: ghalactic/github-release-from-tag@v5 | |
deploy: | |
name: Publish to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
- name: Install Hatch | |
run: pipx install hatch | |
- name: Build package | |
run: hatch build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |