From d109f8bf8d796287e0c54dedb4398df332afcf61 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Wed, 13 Sep 2023 04:01:52 +0200 Subject: [PATCH] update cloudflare pages name -- migration (update config) WIP --- .github/workflows/netlify-cms-auth.yml | 4 ++-- .github/workflows/netlify-cms.yml | 12 ++++++------ .github/workflows/storybook.yml | 6 +++--- .github/workflows/website.yml | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/netlify-cms-auth.yml b/.github/workflows/netlify-cms-auth.yml index 8cdb9de7268..1fab8663c6b 100644 --- a/.github/workflows/netlify-cms-auth.yml +++ b/.github/workflows/netlify-cms-auth.yml @@ -42,7 +42,7 @@ jobs: - name: Publish uses: cloudflare/wrangler-action@2.0.0 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 diff --git a/.github/workflows/netlify-cms.yml b/.github/workflows/netlify-cms.yml index 2af2fd17e56..2825159e5d3 100644 --- a/.github/workflows/netlify-cms.yml +++ b/.github/workflows/netlify-cms.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 802cc3fbb0a..48cab91d152 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 2730247312e..7a4be0817fc 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -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 @@ -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 }} @@ -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'