Skip-exisitng not allowed, now uplaod package when comit includes build and publish
This commit is contained in:
@@ -55,13 +55,13 @@ jobs:
|
||||
mv dist/* ../dist
|
||||
|
||||
- name: Upload Package to Gitea PyPI
|
||||
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'build and publish')
|
||||
env:
|
||||
TWINE_USERNAME: "__token__" # Username for Twine when using token-based auth
|
||||
TWINE_PASSWORD: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} # Use the secret for authentication
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
twine upload --repository-url https://gitea.psi.ch/api/packages/mx/pypi \
|
||||
--skip-existing \
|
||||
dist/*
|
||||
|
||||
docs:
|
||||
|
||||
Reference in New Issue
Block a user