Skip to content

Commit

Permalink
ci: fix deploy to PyPi (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko authored Oct 4, 2024
2 parents bbf342f + 3e19dd2 commit 9cd7d81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ jobs:
- name: Upload package to PyPi
run: |
source venv/bin/activate
make publish
twine upload dist/* --username $PYPI_USERNAME --password $PYPI_TOKEN
- name: Update version
run: |
source venv/bin/activate
git tag `python setup.py --version`
git push --tags # update the repository version
- name: Update doc
run: |
Expand Down
8 changes: 0 additions & 8 deletions openfisca_tasks/publish.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@ build:
@python -m pip uninstall --yes openfisca-core
@find dist -name "*.whl" -exec python -m pip install --no-deps {} \;
@$(call print_pass,$@:)

## Upload to PyPi.
publish:
@$(call print_help,$@:)
@python -m twine upload dist/* --username $PYPI_USERNAME --password $PYPI_TOKEN
@git tag `python setup.py --version`
@git push --tags # update the repository version
@$(call print_pass,$@:)

0 comments on commit 9cd7d81

Please sign in to comment.