Skip to content

Publish to Test PyPi #5

Publish to Test PyPi

Publish to Test PyPi #5

name: Publish to Test PyPi
on: workflow_dispatch
jobs:
build-and-publish:
name: Build python package and publish to Test PyPi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
- name: Build
run: flit build
- name: Publish to Test PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/