Skip to content

Commit

Permalink
Added separate build step
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Mar 18, 2024
1 parent abb2263 commit 6e47410
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Build package
run: poetry build

- name: Publish draft to Test PyPI
continue-on-error: true
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi "${{ secrets.TEST_PYPI_TOKEN }}"
poetry publish --build -r testpypi
poetry publish -r testpypi
- name: Publish to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
run: |
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
poetry publish --build
poetry publish -r pypi

0 comments on commit 6e47410

Please sign in to comment.