From 04c1a920b459383dfee3853f817d412a69cb8950 Mon Sep 17 00:00:00 2001 From: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com> Date: Wed, 14 Aug 2024 00:53:32 +0530 Subject: [PATCH 1/2] ci: add workflow_dispatch event for action trigger --- .github/workflows/production.yaml | 3 ++- .github/workflows/staging.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 4caae41..de47ef1 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -1,11 +1,12 @@ name: Deploy to production on: + workflow_dispatch: push: branches: main jobs: Deploy-to-Cloudflare: runs-on: ubuntu-latest - environment: ${{ vars.CURRENT_ENVIRONMENT }} + environment: staging steps: - uses: actions/checkout@v3 - run: npm install diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index 4f06012..2475f13 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -1,11 +1,12 @@ name: Deploy to staging on: + workflow_dispatch: push: branches: develop jobs: Deploy-to-Cloudflare: runs-on: ubuntu-latest - environment: ${{ vars.CURRENT_ENVIRONMENT }} + environment: staging steps: - uses: actions/checkout@v3 - run: npm install From 5aefc0130b93c02328eca9b41cb6e529739261b7 Mon Sep 17 00:00:00 2001 From: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com> Date: Wed, 14 Aug 2024 00:57:24 +0530 Subject: [PATCH 2/2] chore: fix environment --- .github/workflows/production.yaml | 2 +- .github/workflows/staging.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index de47ef1..b7d269a 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -6,7 +6,7 @@ on: jobs: Deploy-to-Cloudflare: runs-on: ubuntu-latest - environment: staging + environment: ${{ vars.CURRENT_ENVIRONMENT }} steps: - uses: actions/checkout@v3 - run: npm install diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index 2475f13..4186b2d 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -6,7 +6,7 @@ on: jobs: Deploy-to-Cloudflare: runs-on: ubuntu-latest - environment: staging + environment: ${{ vars.CURRENT_ENVIRONMENT }} steps: - uses: actions/checkout@v3 - run: npm install