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:
10
10
CF_BRANCH :
11
11
description : Cloudflare branch
12
12
required : true
13
+ PROJECT_NAME :
14
+ description : Cloudflare project name
15
+ required : true
13
16
runs :
14
17
using : composite
15
18
steps :
16
19
- name : Publish to cloudflare pages (staging)
17
20
env :
18
21
CLOUDFLARE_ACCOUNT_ID : ${{ inputs.CLOUDFLARE_ACCOUNT_ID }}
19
22
CLOUDFLARE_API_TOKEN : ${{ inputs.CLOUDFLARE_API_TOKEN }}
23
+ CF_BRANCH : ${{ inputs.CF_BRANCH }}
24
+ PROJECT_NAME : ${{ inputs.PROJECT_NAME }}
20
25
run : |-
21
26
22
27
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/"
25
30
shell : bash
Original file line number Diff line number Diff line change 32
32
CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
33
33
CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
34
34
CF_BRANCH : staging
35
+ PROJECT_NAME : deriv-developers-portal-pages
35
36
- name : Publish to Docker
36
37
uses : ./.github/actions/publish_to_docker
37
38
with :
Original file line number Diff line number Diff line change 40
40
CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
41
41
CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
42
42
CF_BRANCH : test
43
+ PROJECT_NAME : deriv-developers-portal-test-pages
You can’t perform that action at this time.
0 commit comments