Auto commit version 1.1.15 - 14 Sep 2023 #30
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: PyPI deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: "startsWith(github.event.head_commit.message, 'Auto commit')" | |
environment: release | |
permissions: | |
id-token: write # mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Build a wheel and a source tarball | |
run: | | |
python -m pip install --user build | |
python -m build --wheel --sdist --outdir dist/ | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |