Skip to content

Commit

Permalink
ci: fix package release
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodaher committed Feb 11, 2022
1 parent b92ece2 commit 7d1c207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ jobs:
- name: Build & Publish package
run: |
make publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ jobs:
if: ${{ steps.versioning.outputs.upgraded == 'true' }}
run: |
make publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
setup:
@pip install -U pip poetry
@poetry config pypi-token.pypi $(PYPI_API_TOKEN)

dependencies:
@make setup
Expand Down Expand Up @@ -32,6 +31,7 @@ publish:
@make clean
@printf "\nPublishing lib"
@make setup
@poetry config pypi-token.pypi $(PYPI_API_TOKEN)
@poetry publish --build
@make clean

Expand Down

0 comments on commit 7d1c207

Please sign in to comment.