Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

v0.11.1

v0.11.1 #62

Workflow file for this run

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 }}