fix: PyPI publishing (#43) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |