Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv committed Jul 1, 2024
1 parent 8a2e78e commit b1adf90
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy public --project-name=deriv-com-pages --branch=beta
command: pages deploy public --project-name=signup-deriv-com-pages --branch=beta

- name: Cloudflare preview link ✨
run: echo "New beta website - https://beta.deriv.com"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/production-eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy sites/eu/public --project-name=eu-deriv-com-pages --branch=main
command: pages deploy sites/eu/public --project-name=eu-signup-deriv-com-pages --branch=main

- name: Cloudflare production link ✨
run: echo "New website - http://eu-deriv-com-pages.pages.dev"
run: echo "New website - http://eu-signup-deriv-com-pages.pages.dev"
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/production-row.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy sites/row/public --project-name=row-deriv-com-pages --branch=main
command: pages deploy sites/row/public --project-name=row-signup-deriv-com-pages --branch=main

- name: Cloudflare production link ✨
run: echo "New website - http://row-deriv-com-pages.pages.dev"
run: echo "New website - http://row-signup-deriv-com-pages.pages.dev"
- name: upload-artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy sites/eu/public --project-name=eu-deriv-com-pages --branch=staging
command: pages deploy sites/eu/public --project-name=eu-signup-deriv-com-pages --branch=staging

- name: Cloudflare preview link ✨
run: echo "New staging website - http://staging-eu.cf-pages-deriv-com.deriv.com"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging-row.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy sites/row/public --project-name=row-deriv-com-pages --branch=staging
command: pages deploy sites/row/public --project-name=row-signup-deriv-com-pages --branch=staging

- name: Cloudflare preview link ✨
run: echo "New staging website - http://staging-row.cf-pages-deriv-com.deriv.com"
Expand Down
2 changes: 1 addition & 1 deletion themes/gatsby-theme-deriv/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const is_browser = typeof window !== 'undefined'
const checkDomain = () => {
return eval(
decodeURIComponent(
'var%20curhost%20%3D%20window.location.hostname%3B%20var%20t8hvj%20%3D%20%2F%5Cb%28deriv%7Cbinary%7Cbinaryqa%5B0-9%5D%7B2%7D%29%5C.%28com%7Cbot%7Cme%7Cbe%7Capp%7Csx%29%24%7C%5Cb%28localhost%29%7C%28%5Cbderiv-com-preview-links.pages.dev%29%7C%28row-deriv-com-pages%29%7C%28eu-deriv-com-pages%29%2Fgm%3B%20if%20%28t8hvj.test%28curhost%29%20%3D%3D%20false%29%7Balert%28%22Not%20our%20domain%22%29%7D',
'var%20curhost%20%3D%20window.location.hostname%3B%20var%20t8hvj%20%3D%20%2F%5Cb%28deriv%7Cbinary%7Cbinaryqa%5B0-9%5D%7B2%7D%29%5C.%28com%7Cbot%7Cme%7Cbe%7Capp%7Csx%29%24%7C%5Cb%28localhost%29%7C%28%5Cbderiv-com-preview-links.pages.dev%29%7C%28row-signup-deriv-com-pages%29%7C%28eu-signup-deriv-com-pages%29%2Fgm%3B%20if%20%28t8hvj.test%28curhost%29%20%3D%3D%20false%29%7Balert%28%22Not%20our%20domain%22%29%7D',
),
)
}
Expand Down

0 comments on commit b1adf90

Please sign in to comment.