Skip to content

Publish to Test PyPI #4

Publish to Test PyPI

Publish to Test PyPI #4

name: "Publish to Test PyPI"
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
publish:
name: Publish to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install flit
run: |
python -m pip install --upgrade pip
python -m pip install 'flit>=3.8.0'
- name: Build the package
run: |
flit build
- name: Publish to Test PyPI
env:
FLIT_INDEX_URL: https://test.pypi.org/legacy/
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
flit publish