Skip to content

Commit

Permalink
Fix pypi publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed Aug 3, 2024
1 parent ac41cca commit beba83d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit beba83d

Please sign in to comment.