Skip to content

Commit

Permalink
Pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
miromannino committed Jan 25, 2025
1 parent 2a7dd0e commit df4fe67
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Publish Python Package

on:
push:
branches:
- main
release:
types:
- published
Expand Down Expand Up @@ -32,22 +29,13 @@ jobs:
rm -rf dist build *.egg-info
pipenv run python setup.py sdist bdist_wheel
- name: Publish to TestPyPI
if: github.event_name == 'push'
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pipenv run twine upload --repository testpypi dist/*
# - name: Publish to PyPI
# if: github.event_name == 'release'
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
# run: |
# pipenv run twine upload dist/*
pipenv run twine upload dist/*
- name: Test package installation
run: |
pipenv run pip install --index-url https://test.pypi.org/simple/ --no-deps git-import-contributions
pipenv run pip install --no-deps git-import-contributions

0 comments on commit df4fe67

Please sign in to comment.