From 5fa2d6f66d5e5fe097339c875d5e375940775270 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Fri, 22 Sep 2023 09:56:45 +0200 Subject: [PATCH] migrate the starknet website --- .github/workflows/website.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 1e16e73b7d..7cab898d7a 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,21 +53,20 @@ 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 }} - VITE_CF_STREAM_URL: ${{ secrets.CF_STREAM_URL }} + VITE_CF_STREAM_URL: ${{ secrets.NEW_CF_STREAM_URL }} - 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' gitHubToken: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref_name == 'production' && 'main' || github.ref_name }} -