Skip to content

ci: add release workflows #1

ci: add release workflows

ci: add release workflows #1

Workflow file for this run

name: Publish to TestPyPI
on:
pull_request:
branches:
- main
# Enable manual run
workflow_dispatch:
jobs:
build-and-publish:
name: Build and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: pip install -U setuptools wheel build
- name: Build
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true