From 8f5cbaf4c9387f8fd441c025977bc78e5de6ae53 Mon Sep 17 00:00:00 2001 From: Eric <55186326+25Ericcheong@users.noreply.github.com> Date: Sat, 4 May 2024 10:21:03 +0800 Subject: [PATCH 1/2] Update deploy-to-prod.yml Investigating route of step being skipped wrongly --- .github/workflows/deploy-to-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-prod.yml b/.github/workflows/deploy-to-prod.yml index 20922c8..bdc2441 100644 --- a/.github/workflows/deploy-to-prod.yml +++ b/.github/workflows/deploy-to-prod.yml @@ -45,7 +45,7 @@ jobs: with: path: "." - - run: echo "🍏 Build and save artifact status is a ${{ job.status }}" + - run: echo "🍏 Build and save artifact status is a ${{ job.status }} on ${{ github.ref }} branch" job_2_deploy: name: Deploy Website to GitHub Pages From 653693d0b1bebb4e374379ae75558d5ac73f72e1 Mon Sep 17 00:00:00 2001 From: Eric <55186326+25Ericcheong@users.noreply.github.com> Date: Sat, 4 May 2024 10:27:25 +0800 Subject: [PATCH 2/2] Update deploy-to-prod.yml Got rid of condition to check when/if PR has been merged --- .github/workflows/deploy-to-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-prod.yml b/.github/workflows/deploy-to-prod.yml index bdc2441..cd0ee1d 100644 --- a/.github/workflows/deploy-to-prod.yml +++ b/.github/workflows/deploy-to-prod.yml @@ -56,7 +56,7 @@ jobs: pages: write id-token: write - if: github.ref == 'refs/heads/master' && github.event.pull_request.merged + if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest environment: