v0.6.3 #17
Workflow file for this run
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: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
release: | |
name: Deploy release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
# name: testpypi | |
name: release | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
poetry-version: ["1.2.1"] | |
steps: | |
# ====== | |
# Checkout, set up python | |
# ====== | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# ====== | |
# Install poetry | |
# ====== | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: ${{ matrix.poetry-version }} | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
# ====== | |
# Install dependencies | |
# ====== | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
# ====== | |
# Build and upload package to Test-PyPI | |
# Null API token? "There is no pypi-token.testpypi setting." | |
# Test? | |
# poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
# poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }} | |
# poetry publish --no-interaction --build -r testpypi | |
# ===== | |
- name: Upload package | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish --no-interaction --build |