From 13217e9ba98c2ad7f12e6a6477b6696e45759cf4 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 3 Sep 2026 01:36:12 +0545 Subject: [PATCH] ci: update release ci --- .github/workflows/release.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80f266d..2e41582 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,22 +1,17 @@ name: Release to PyPI on: - push: - tags: - - "django-nepali-payment/v*" - workflow_dispatch: - -permissions: - id-token: write - contents: read - -jobs: release: + types: [published] + permissions: + contents: read +jobs: + deploy: name: Build and publish to PyPI runs-on: ubuntu-latest environment: release steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v5 with: python-version: "3.12"