From 4875a9972fa54a45e108adee415ac3f54f91a03d Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Sat, 8 Nov 2025 12:48:26 -0800 Subject: [PATCH] Add actions? --- .gitea/workflows/publish.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..d9f3555 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,22 @@ +name: Publish Package +on: [push] + +jobs: + build_deploy: + name: Build and Deploy Package + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + - run: python3 -m pip install build --user + - run: python3 -m pip install twine --user + - run: python -m build + - uses: actions/upload-artifact@v3 + with: + name: python-package-distributions + path: dist/ + - run: TWINE_PASSWORD=${{ secrets.PYPI_PAT }} TWINE_USERNAME=bslathi19 python -m twine upload --repository-url ${{ vars.CI_API_URL } dist/* +