diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 167ea578..9f9c918d 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -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: