Skip to content

Commit

Permalink
Update publish-to-test-pypi.yml to publish package with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
gahan9 authored Jul 11, 2024
1 parent 74206c2 commit 8788178
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
name: Upload Python 🐍 distributions 📦 to TestPyPI

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
logLevel:
Expand All @@ -34,9 +37,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: abatilo/actions-poetry@v2
- uses: JRubics/poetry-publish@v2.0
with:
poetry-version: 1.4.0
pypi_token: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"
poetry_install_options: "--sync --no-root"
poetry_publish_options: "--dry-run"
- name: Get poetry version
run: >-
echo $(poetry --version)
- name: Publish distribution 📦 to Test PyPI
run: >-
poetry config repositories.testpypi https://test.pypi.org/legacy/
Expand Down

0 comments on commit 8788178

Please sign in to comment.