Skip to content

Commit

Permalink
Merge pull request #1441 from starknet-io/bugfix/fix-twitter-share
Browse files Browse the repository at this point in the history
Fix twitter share image
  • Loading branch information
rafaelcruzazevedo authored Sep 21, 2023
2 parents 4755cf9 + 2469816 commit d9f23cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d9f23cf

Please sign in to comment.