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

Commit

Permalink
Merge pull request #290 from sandeep-deriv/sandeep/setup-test-uat-env
Browse files Browse the repository at this point in the history
chore: updated workflow
  • Loading branch information
sandeep-deriv authored Mar 19, 2024
2 parents f3970d3 + 3fc1b82 commit 596da90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/publish_to_pages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,21 @@ inputs:
CF_BRANCH:
description: Cloudflare branch
required: true
PROJECT_NAME:
description: Cloudflare project name
required: true
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 }}
CF_BRANCH: ${{ inputs.CF_BRANCH }}
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
run: |-
npm i [email protected]
cd build
npx wrangler pages deploy . --project-name=deriv-developers-portal-pages --branch=${{ inputs.CF_BRANCH }}
echo "New staging website - https://staging-api.deriv.com/"
npx wrangler pages deploy . --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.CF_BRANCH }}
echo "New staging website - https://${{ env.CF_BRANCH }}-api.deriv.com/"
shell: bash
1 change: 1 addition & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_BRANCH: staging
PROJECT_NAME: deriv-developers-portal-pages
- name: Publish to Docker
uses: ./.github/actions/publish_to_docker
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_BRANCH: test
PROJECT_NAME: deriv-developers-portal-test-pages

0 comments on commit 596da90

Please sign in to comment.