diff --git a/.gitea/workflows/build-local.yaml b/.gitea/workflows/build-local.yaml index ceb4d53..a963ac6 100644 --- a/.gitea/workflows/build-local.yaml +++ b/.gitea/workflows/build-local.yaml @@ -15,12 +15,7 @@ jobs: with: image: python:3.12-slim options: -v $WORKSPACE:/app -w /app - shell: /usr/bin/bash - run: | - pip install build twine - python -m build - twine upload \ - --repository-url https://git.gansejunge.com/api/packages/notifier/pypi \ - -u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \ - -p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \ - dist/* \ No newline at end of file + 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/*'" + env: + PACKAGE_UPLOAD_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }} + PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \ No newline at end of file diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bae5ed4..b11d54e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -15,12 +15,7 @@ jobs: with: image: python:3.12-slim options: -v $WORKSPACE:/app -w /app - shell: /usr/bin/bash - run: | - pip install build twine - python -m build - twine upload \ - --repository-url https://git.gansejunge.com/api/packages/notifier/pypi \ - -u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \ - -p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \ - dist/* + 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/*'" + env: + PACKAGE_UPLOAD_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }} + PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \ No newline at end of file