Skip to content

Commit 8754de9

Browse files
committed
fixed autodeploy
1 parent 1bca6cd commit 8754de9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/master-deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
deploy-prod:
1010
runs-on: ubuntu-latest
11+
env:
12+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
1113
steps:
1214
- uses: actions/checkout@v3
1315
with:
@@ -19,9 +21,12 @@ jobs:
1921
python-version: "3.10"
2022
install-flags: "--all-extras"
2123

24+
- name: Configure PyPI
25+
run: |
26+
poetry config repositories.pypi https://upload.pypi.org/legacy/
27+
poetry config pypi-token.pypi $POETRY_PYPI_TOKEN_PYPI
28+
2229
- name: Publish to PyPI
2330
run: |
2431
poetry build
2532
poetry publish
26-
env:
27-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_API_TOKEN }}

0 commit comments

Comments
 (0)