diff --git a/.gitea/workflows/python-package.yaml b/.gitea/workflows/python-package.yaml new file mode 100644 index 0000000..25ae251 --- /dev/null +++ b/.gitea/workflows/python-package.yaml @@ -0,0 +1,24 @@ +name: Python Package + +on: + workflow_call: + inputs: + secrets: + PIPY_REPO_USER: + required: true + PIPY_REPO_PASS: + required: true + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Install build dependencies + run: pip install -y build twine + - name: Check out repository code + uses: actions/checkout@v3 + - name: Build + run: python3 -m build + - name: Publish + run: python3 -m twine upload --repository-url "https://gitea.example.com/api/packages/${{ secrets.PIPY_REPO_USER }}/pypi" -u ${{ secrets.PIPY_REPO_USER }} -p ${{ secrets.PIPY_REPO_PASS }} dist/* +