diff --git a/.gitea/workflows/build-local.yaml b/.gitea/workflows/build-local.yaml new file mode 100644 index 0000000..13f85bc --- /dev/null +++ b/.gitea/workflows/build-local.yaml @@ -0,0 +1,26 @@ +name: Build and Publish Package + +on: + workflow_dispatch: + +jobs: + build: + runs-on: local + container: + image: python:3.12-slim + steps: + - name: Install dependencies + run: | + pip install build twine + - name: Checkout code + uses: actions/checkout@v4 + - name: Build package + run: python -m build + - name: Publish to Gitea PyPI + env: + TWINE_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} + run: | + twine upload \ + --repository-url https://git.gansejunge.com/api/packages/notifier/pypi \ + -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/* diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..1cfc47e --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build and Publish Package + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + container: + image: python:3.12-slim + steps: + - name: Install dependencies + run: | + pip install build twine + - name: Checkout code + uses: actions/checkout@v4 + - name: Build package + run: python -m build + - name: Publish to Gitea PyPI + env: + TWINE_USERNAME: ${{ secrets.PACKAGE_UPLOAD_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} + run: | + twine upload \ + --repository-url https://git.gansejunge.com/api/packages/notifier/pypi \ + -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*