From c38869b6623d823b34681539b60c314a5c3480b3 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 3 Sep 2026 00:57:32 +0545 Subject: [PATCH] ci: publish to PyPI on version tags --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..80f266d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release to PyPI + +on: + push: + tags: + - "django-nepali-payment/v*" + workflow_dispatch: + +permissions: + id-token: write + contents: read + +jobs: + release: + name: Build and publish to PyPI + runs-on: ubuntu-latest + environment: release + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v5 + with: + python-version: "3.12" + - name: Build sdist and wheel + run: uv build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/