Skip to content

Commit

Permalink
Merge pull request #2 from mlops-club/fix/pypi
Browse files Browse the repository at this point in the history
fix: Publish to PyPI Error
  • Loading branch information
avr2002 authored Sep 30, 2024
2 parents 44eb438 + 0031829 commit b9be223
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jobs:
run: |
# make publish-test
make publish-prod
env:
PROD_PYPI_TOKEN: ${{ secrets.PROD_PYPI_TOKEN }}
- name: Push tags
run: |
git tag $(cat version.txt)
Expand Down
6 changes: 2 additions & 4 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,15 @@ function publish:test {
twine upload dist/* \
--repository testpypi \
--username=__token__ \
--password="$TEST_PYPI_TOKEN" \
--verbose
--password="$TEST_PYPI_TOKEN"
}

function publish:prod {
try-load-dotenv || true
twine upload dist/* \
--repository pypi \
--username=__token__ \
--password="$PROD_PYPI_TOKEN" \
--verbose
--password="$PROD_PYPI_TOKEN"
}

# remove all files generated by tests, builds, or operating this codebase
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.4

0 comments on commit b9be223

Please sign in to comment.