From 997f6742b3459725cc7253f6f86702f68ff98092 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Mon, 25 Sep 2023 15:49:26 +0200 Subject: [PATCH 1/2] update pipeline --- .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 52e75d5ad5..ee48cfd804 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 @@ -55,7 +55,7 @@ jobs: if [ "${{ env.GITHUB_REF_SLUG_URL }}" = "production" ]; then echo "VITE_SITE_URL=https://www.starknet.io" >> $GITHUB_ENV else - echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-website.pages.dev" >> $GITHUB_ENV + echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev" >> $GITHUB_ENV fi - name: Build project @@ -64,17 +64,16 @@ jobs: 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 }} - From 8883c798cdd92b0f25c1e7193a5e1b918b885aad Mon Sep 17 00:00:00 2001 From: bgharbi Date: Mon, 25 Sep 2023 17:59:15 +0200 Subject: [PATCH 2/2] fix video error (new ids) --- .../website/src/components/VideoPlayer/constants.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workspaces/website/src/components/VideoPlayer/constants.ts b/workspaces/website/src/components/VideoPlayer/constants.ts index 97e681c7ac..6aadda5fe0 100644 --- a/workspaces/website/src/components/VideoPlayer/constants.ts +++ b/workspaces/website/src/components/VideoPlayer/constants.ts @@ -12,7 +12,7 @@ export const playlist: Chapter[] = [ title: "How Starknet scales Ethereum", description: "Chapter 1 explains how Starknet works at a high level", thumbnail: "/assets/video/chapter1.png", - videoId: "abd99c9696f1862f828c6e18136d75e5", + videoId: "2805da1fb7f9cd49888f680c26e386fd", durationTime: "02:42", }, { @@ -20,7 +20,7 @@ export const playlist: Chapter[] = [ title: "The Starknet Sequencer", description: "Chapter 2 explains about the Starknet Sequencer", thumbnail: "/assets/video/chapter2.png", - videoId: "7ca4a89a8031a1737e4632ec498afb55", + videoId: "47d80010706a05bc4e4dae6cdd43b8be", durationTime: "02:24", }, { @@ -28,7 +28,7 @@ export const playlist: Chapter[] = [ title: "The Starknet Prover", description: "Chapter 3 explains how the Starknet Prover works", thumbnail: "/assets/video/chapter3.png", - videoId: "b66a934468bf72606e60abd7d475acf3", + videoId: "a23465bbd7c3b27489a29abf4373a55d", durationTime: "02:26", }, { @@ -36,7 +36,7 @@ export const playlist: Chapter[] = [ title: "Secure settlement on Ethereum", description: "Chapter 4 explains how to secure settlement on Ethereum", thumbnail: "/assets/video/chapter4.png", - videoId: "af654c93367a0d4eae7ea90252ac342e", + videoId: "69ba2bd9bdd2ba2970c0fbe3b75c3ec0", durationTime: "03:28", }, ];