From e69601c8ec91e723cad11e046b7fd3a4a1693b09 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 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..7a7ad3c --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish Package +on: [push] + +jobs: + build: + name: Build Package + runs-on: ubuntu-latest + + steps: + - run: source init_env.sh + - run: python -m build + - uses: actions/upload-artifact@v4 + with: + name: python-package-distributions + path: dist/ + + deploy: + name: Deploy Package + needs: + - build + runs-on: ubuntu-latest + + steps: + - run: source init_env.sh + - uses: actions/download-artifact@v4 + name: python-package-distributions + path: dist/ + - run: TWINE_PASSWORD=${{ secrets.PYPI_PAT }} TWINE_USERNAME=bslathi19 python -m twine upload --repository-url ${CI_API_URL} dist/*