Running via bash directly

This commit is contained in:
Florian 2025-11-08 10:38:44 +01:00
parent 07ce9d1686
commit 32d2ea24e4
2 changed files with 8 additions and 18 deletions

View File

@ -15,12 +15,7 @@ jobs:
with: with:
image: python:3.12-slim image: python:3.12-slim
options: -v $WORKSPACE:/app -w /app options: -v $WORKSPACE:/app -w /app
shell: /usr/bin/bash run: "/usr/bin/bash -c 'pip install build twine && python -m build && twine upload --repository-url https://git.gansejunge.com/api/packages/notifier/pypi -u $PACKAGE_UPLOAD_USERNAME -p $PACKAGE_UPLOAD_TOKEN dist/*'"
run: | env:
pip install build twine PACKAGE_UPLOAD_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }}
python -m build PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }}
twine upload \
--repository-url https://git.gansejunge.com/api/packages/notifier/pypi \
-u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \
-p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \
dist/*

View File

@ -15,12 +15,7 @@ jobs:
with: with:
image: python:3.12-slim image: python:3.12-slim
options: -v $WORKSPACE:/app -w /app options: -v $WORKSPACE:/app -w /app
shell: /usr/bin/bash run: "/usr/bin/bash -c 'pip install build twine && python -m build && twine upload --repository-url https://git.gansejunge.com/api/packages/notifier/pypi -u $PACKAGE_UPLOAD_USERNAME -p $PACKAGE_UPLOAD_TOKEN dist/*'"
run: | env:
pip install build twine PACKAGE_UPLOAD_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }}
python -m build PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }}
twine upload \
--repository-url https://git.gansejunge.com/api/packages/notifier/pypi \
-u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \
-p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \
dist/*