Skip to content

Commit a8498c1

Browse files
committed
fix(ci): explicitly configure poetry repos, not relying on env vars
1 parent c008ee5 commit a8498c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ jobs:
6868
- uses: actions/checkout@v5
6969
- uses: ./.github/actions/setup-semantic-release # node+semantic-release
7070
- uses: ./.github/actions/setup # poetry
71+
- name: configure poetry repos
72+
run: |
73+
poetry config repositories.pypi https://upload.pypi.org/legacy/
74+
poetry config repositories.testpypi https://test.pypi.org/legacy/
7175
- run: semantic-release --branches ${{ github.ref_name }}
7276
env:
7377
GIT_AUTHOR_NAME: appland-release
@@ -78,5 +82,3 @@ jobs:
7882
PYPI_PUBLISH_REPO: ${{ github.ref == 'refs/heads/master' && 'pypi' || 'testpypi' }}
7983
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
8084
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.POETRY_PYPI_TOKEN_TESTPYPI }}
81-
POETRY_REPOSITORIES_PYPI: https://upload.pypi.org/legacy/
82-
POETRY_REPOSITORIES_TESTPYPI: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)