This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
v0.10.10 #59
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 to PyPI | |
on: | |
workflow_dispatch: | |
release: | |
types: [released] | |
jobs: | |
publish: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Build Distribution | |
run: | | |
python3 -m pip install build | |
python3 -m build | |
continue-on-error: false | |
- name: Publish to TestPyPI | |
uses: pypa/[email protected] | |
if: github.event_name == 'workflow_dispatch' | |
with: | |
password: ${{ secrets.PYPI_TEST_KEY }} | |
repository-url: https://test.pypi.org/legacy/ | |
skip-existing: true | |
- name: Publish to PyPI | |
if: github.event_name == 'release' && github.event.action == 'released' | |
uses: pypa/[email protected] | |
with: | |
password: ${{ secrets.PYPI_KEY }} |