File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,12 @@ jobs:
5959 - name: Update pyproject.toml
6060 run: poetry version ${{ steps.version.outputs.major-version }}.${{ steps.version.outputs.minor-version }}.dev$(date +%s)
6161 #----------------------------------------------
62+ # Build the package (before publish action)
63+ #----------------------------------------------
64+ - name: Build package
65+ run: poetry build
66+ #----------------------------------------------
6267 # Attempt push to test-pypi
6368 #----------------------------------------------
64- - name: Build and publish to pypi
65- uses: JRubics/poetry-publish@v1.10
66- with:
67- pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
68- repository_name: "testpypi"
69- repository_url: "https://test.pypi.org/legacy/"
69+ - name: Publish to pypi
70+ run: poetry publish --username __token__ --password ${{ secrets.TEST_PYPI_TOKEN }} --repository testpypi --repository-url https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 6161 - name: Update pyproject.toml
6262 run: poetry version ${{ steps.version.outputs.current-version }}
6363 #----------------------------------------------
64- # Attempt push to test-pypi
64+ # Build the package (before publish)
6565 #----------------------------------------------
66- - name: Build and publish to pypi
67- uses: JRubics/poetry-publish@v1.10
68- with:
69- pypi_token: ${{ secrets.PROD_PYPI_TOKEN }}
66+ - name: Build package
67+ run: poetry build
68+ #----------------------------------------------
69+ # Publish to pypi
70+ #----------------------------------------------
71+ - name: Publish to pypi
72+ run: poetry publish --username __token__ --password ${{ secrets.PROD_PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments