Skip to content

[pre-commit.ci] pre-commit autoupdate (#168) #197

[pre-commit.ci] pre-commit autoupdate (#168)

[pre-commit.ci] pre-commit autoupdate (#168) #197

name: Test release to PyPI
on:
push:
branches:
- main
# tags:
# - "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.8
- uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.2.0
- run: poetry self add "poetry-dynamic-versioning[plugin]"
- run: poetry config repositories.test-pypi https://test.pypi.org/legacy/
- run: poetry config pypi-token.test-pypi ${{ secrets.PYPI_TEST_TOKEN }}
- run: poetry publish --build -r test-pypi
# Can't use this because of poetry-dynamic-versioning
# - name: Build and publish to pypi
# uses: JRubics/poetry-publish@v1.6
# with:
# pypi_token: ${{ secrets.PYPI_TOKEN }}