From beba83d130e3a1649119d9e85ac0087393ca20b8 Mon Sep 17 00:00:00 2001 From: burnysc2 Date: Sat, 3 Aug 2024 20:15:03 +0200 Subject: [PATCH] Fix pypi publish CI --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 714b45e3..3e6032a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -473,12 +473,16 @@ jobs: - name: Install poetry run: pip install poetry + - name: Set pypi token + working-directory: ${{ env.SUBDIRECTORY }} + run: poetry config pypi-token.pypi ${{ secrets.PYPI_PYTHON_SC2_TOKEN }} + - name: Build package # Builds package to dist/* directory run: poetry build - name: Publish - # Publish package on pypi if: github.ref == 'refs/heads/develop' && github.event_name == 'push' + working-directory: ${{ env.SUBDIRECTORY }} continue-on-error: true - run: poetry publish --username ${{ secrets.pypi_username }} --password ${{ secrets.pypi_password }} + run: poetry publish