Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 596da90

Browse files
Merge pull request #290 from sandeep-deriv/sandeep/setup-test-uat-env
chore: updated workflow
2 parents f3970d3 + 3fc1b82 commit 596da90

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/actions/publish_to_pages/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ inputs:
1010
CF_BRANCH:
1111
description: Cloudflare branch
1212
required: true
13+
PROJECT_NAME:
14+
description: Cloudflare project name
15+
required: true
1316
runs:
1417
using: composite
1518
steps:
1619
- name: Publish to cloudflare pages (staging)
1720
env:
1821
CLOUDFLARE_ACCOUNT_ID: ${{ inputs.CLOUDFLARE_ACCOUNT_ID }}
1922
CLOUDFLARE_API_TOKEN: ${{ inputs.CLOUDFLARE_API_TOKEN }}
23+
CF_BRANCH: ${{ inputs.CF_BRANCH }}
24+
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
2025
run: |-
2126
2227
cd build
23-
npx wrangler pages deploy . --project-name=deriv-developers-portal-pages --branch=${{ inputs.CF_BRANCH }}
24-
echo "New staging website - https://staging-api.deriv.com/"
28+
npx wrangler pages deploy . --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.CF_BRANCH }}
29+
echo "New staging website - https://${{ env.CF_BRANCH }}-api.deriv.com/"
2530
shell: bash

.github/workflows/release_staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3333
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3434
CF_BRANCH: staging
35+
PROJECT_NAME: deriv-developers-portal-pages
3536
- name: Publish to Docker
3637
uses: ./.github/actions/publish_to_docker
3738
with:

.github/workflows/release_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ jobs:
4040
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4141
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4242
CF_BRANCH: test
43+
PROJECT_NAME: deriv-developers-portal-test-pages

0 commit comments

Comments
 (0)