Skip to content

fix: PyPI publishing (#43) #2

fix: PyPI publishing (#43)

fix: PyPI publishing (#43) #2

name: "Publish to Test PyPI"
on:
push:
branches:
- develop
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