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/