From a1763d76191af9b5a5ad0355cb946aeffcc1fb22 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Tue, 7 Nov 2023 17:16:58 +0800 Subject: [PATCH 1/2] ci: turn inputs to env variables --- .github/actions/publish_to_pages_production/action.yml | 3 +++ .github/actions/publish_to_pages_staging/action.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/actions/publish_to_pages_production/action.yml b/.github/actions/publish_to_pages_production/action.yml index 5677d22d9db..e48a77e8b4b 100644 --- a/.github/actions/publish_to_pages_production/action.yml +++ b/.github/actions/publish_to_pages_production/action.yml @@ -11,6 +11,9 @@ runs: using: composite steps: - name: Publish to cloudflare pages (production) + env: + CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} run: |- cd dist npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=main diff --git a/.github/actions/publish_to_pages_staging/action.yml b/.github/actions/publish_to_pages_staging/action.yml index 18a56fdaeb8..dabca75f82d 100644 --- a/.github/actions/publish_to_pages_staging/action.yml +++ b/.github/actions/publish_to_pages_staging/action.yml @@ -11,6 +11,9 @@ runs: using: composite steps: - name: Publish to cloudflare pages (staging) + env: + CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} run: |- cd dist npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=staging From e2674883006caa6f8264778f24e7bd2121e7ca1e Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Tue, 7 Nov 2023 18:12:20 +0800 Subject: [PATCH 2/2] ci: fix the alignment --- .github/actions/publish_to_pages_production/action.yml | 4 ++-- .github/actions/publish_to_pages_staging/action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/publish_to_pages_production/action.yml b/.github/actions/publish_to_pages_production/action.yml index e48a77e8b4b..77cdc8e769f 100644 --- a/.github/actions/publish_to_pages_production/action.yml +++ b/.github/actions/publish_to_pages_production/action.yml @@ -12,8 +12,8 @@ runs: steps: - name: Publish to cloudflare pages (production) env: - CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} - CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} run: |- cd dist npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=main diff --git a/.github/actions/publish_to_pages_staging/action.yml b/.github/actions/publish_to_pages_staging/action.yml index dabca75f82d..207139b90c2 100644 --- a/.github/actions/publish_to_pages_staging/action.yml +++ b/.github/actions/publish_to_pages_staging/action.yml @@ -12,8 +12,8 @@ runs: steps: - name: Publish to cloudflare pages (staging) env: - CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} - CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }} run: |- cd dist npx -y wrangler pages deploy . --project-name=deriv-binary-static-pages --branch=staging