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/*