Skip to content

Commit

Permalink
Switch to PYPI TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Milk committed Jan 8, 2024
1 parent d2876bb commit d742962
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
- name: Publish dry run
run: poetry publish --dry-run --skip-existing
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
POETRY_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

- name: Publish to pypi
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
run: poetry publish --skip-existing
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
POETRY_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 comments on commit d742962

Please sign in to comment.