Skip to content

Commit

Permalink
[FIX-3] Fix whl publish and access through secrets var (#6)
Browse files Browse the repository at this point in the history
* Run publish on push

Signed-off-by: aapozd <[email protected]>

* Access through secrets

Signed-off-by: aapozd <[email protected]>

---------

Signed-off-by: aapozd <[email protected]>
  • Loading branch information
aaletov authored Jun 10, 2024
1 parent 475cc65 commit bcf504b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

publish-wheel:
runs-on: ubuntu-latest
if: github.event.action == 'create'
if: ${{github.event_name == 'push'}}
needs:
- linters
- pytest
Expand All @@ -87,5 +87,5 @@ jobs:
$POETRY_HOME/bin/poetry --version
- name: Build and publish
run: |
$POETRY_HOME/bin/poetry config pypi-token.pypi ${{ env.PYPI_TOKEN }}
$POETRY_HOME/bin/poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
$POETRY_HOME/bin/poetry publish --build

0 comments on commit bcf504b

Please sign in to comment.