.github/workflows/publish-to-test-pypi.yml
name: Publish 📦 to TestPyPI
on:
push:
tags:
- 'v*'
jobs:
build-n-publish:
name: Build and publish 📦 to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
with:
ref: development
- name: Set up Python 3.7
uses: actions/setup-python@v2.2.2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip flit
flit install
- name: Build a binary wheel and a source tarball
run: >-
flit build
- name: Publish 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository_url: https://test.pypi.org/legacy/