From e79c141ade55a3af1d0b942a386ffe251263f42b Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 4 Dec 2023 16:45:18 +0100 Subject: [PATCH] Python package publish pipeline attempt --- .gitea/workflows/python-package.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/python-package.yaml 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/* +