This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff 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
1316runs :
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 npm i wrangler@3.10.1
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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments