diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 43f3053..aac12e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,9 +9,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - name: Install poetry + run: | + sudo apt install -y pipx + pipx ensurepath + pipx install poetry + pipx inject poetry poetry-plugin-export + poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} - name: Build and publish to Python package repository + run: | + poetry build + poetry publish uses: JRubics/poetry-publish@v2.0 - with: - repository_name: "django_api_forms" - repository_url: "https://github.com/Sibyx/django_api_forms" - pypi_token: ${{ secrets.PYPI_TOKEN }}