From 2469816ebc32cb426bf9f091f3d29e5b34346c07 Mon Sep 17 00:00:00 2001 From: nuno-aac Date: Thu, 21 Sep 2023 16:16:19 +0100 Subject: [PATCH] Fix twitter share image --- .github/workflows/website.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 1e16e73b7d..52e75d5ad5 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -50,10 +50,17 @@ jobs: with: slug-maxlength: 28 + - name: Set VITE_SITE_URL + run: | + 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 + fi + - 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_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 }}