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