Skip to content

Commit

Permalink
update cloudflare pages name -- migration (update config) WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 13, 2023
1 parent 1bc83ed commit d109f8b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/netlify-cms-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: workspaces/netlify-cms-auth
command: publish
12 changes: 6 additions & 6 deletions .github/workflows/netlify-cms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build and Deploy
environment:
name: Netlify CMS ${{ github.ref_name }}
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-netlify-cms.pages.dev
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-netlify-cms-byd.pages.dev
permissions:
contents: read
deployments: write
Expand Down Expand Up @@ -47,16 +47,16 @@ jobs:
- name: Build Netlify CMS
run: yarn workspace @starknet-io/netlify-cms build
env:
VITE_LIVE_PREVIEW_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev
VITE_LIVE_PREVIEW_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev
VITE_GIT_BRANCH_NAME: ${{ github.ref_name }}
VITE_API_BASE_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev/api
VITE_DATA_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev/data
VITE_API_BASE_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev/api
VITE_DATA_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev/data

- name: Deploy Netlify CMS
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-netlify-cms
directory: workspaces/netlify-cms/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build and Deploy
environment:
name: Storybook ${{ github.ref_name }}
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-storybook.pages.dev
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-storybook-cwm.pages.dev
permissions:
contents: read
deployments: write
Expand Down Expand Up @@ -50,8 +50,8 @@ jobs:
- name: Deploy storybook
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-storybook
directory: workspaces/storybook/storybook-static
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build and Deploy
environment:
name: Starknet Website ${{ github.ref_name }}
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Build project
run: yarn workspace @starknet-io/website build
env:
VITE_SITE_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev
VITE_SITE_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev
VITE_ALGOLIA_INDEX: ${{ github.ref_name == 'production' && 'production' || 'dev' }}
VITE_ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
VITE_ALGOLIA_SEARCH_API_KEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }}
Expand All @@ -62,9 +62,9 @@ jobs:
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-website
apiToken: ${{ secrets.NEW_CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.NEW_CLOUDFLARE_ACCOUNT_ID }}
projectName: starknet-websites
directory: dist/client
workingDirectory: workspaces/website
wranglerVersion: '3'
Expand Down

0 comments on commit d109f8b

Please sign in to comment.