Skip to content

Commit eed311b

Browse files
committed
Edit order for pypi
1 parent 44b09b1 commit eed311b

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/workflows/publish-test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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/

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ jobs:
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 }}

0 commit comments

Comments
 (0)