Skip to content

Commit

Permalink
updated publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldziher committed Jun 2, 2022
1 parent 2687c47 commit 781535c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: test-publish
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"
- name: config poetry
shell: bash
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry config repositories.test "https://test.pypi.org/legacy/"
poetry config pypi-token.test ${{ secrets.TEST_PYPI_TOKEN }}
# - name: publish test
# shell: bash
# run: poetry publish --build --no-interaction --repository test
- name: publish
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
shell: bash
run: poetry publish --build --no-interaction

0 comments on commit 781535c

Please sign in to comment.