Merge pull request #113 from hudson-and-thames/feature/workflow-upgrade #1
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 Distribution to TestPyPI | |
on: | |
push: | |
branches: | |
- develop | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+-dev' | |
jobs: | |
build-and-publish-test-dist: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
- name: Install dependencies | |
run: | | |
poetry install --without docs tests | |
- name: Build the package | |
run: | | |
poetry build | |
- name: Publish to TestPyPI | |
env: | |
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
run: | | |
poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
poetry publish -r testpypi |