Release v0.6.22 #23
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
# Workflow for publishing module package to https://pypi.org. | |
name: Publish PyPI Package | |
on: | |
# trigger this workflow when a release is published. | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE , so your workflow can access it. | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Run build to a specified version of python into a specified directory. | |
- name: Python Build | |
run: python3 -m pip install --upgrade build && python3 -m build | |
# Publish the python package to pypi.org with the api token. | |
- name: Publish Package | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://upload.pypi.org/legacy/ | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |