Skip to content

deploy-pypi

deploy-pypi #7

Workflow file for this run

# Github actions workflow for deploying to Test PyPI
name: deploy-pypi
on:
workflow_run:
workflows: ["build"]
types:
- completed
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Build package
run: hatch build
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}