Skip to content

Commit

Permalink
Merge pull request #1737 from starknet-io/dev
Browse files Browse the repository at this point in the history
Merge dev into production
  • Loading branch information
nuno-aac authored Nov 30, 2023
2 parents e161186 + 5dde5f6 commit 040a757
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/netlify-cms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,23 @@ jobs:
uses: rlespinasse/github-slug-action@v4
with:
slug-maxlength: 28

- name: Set URLS
run: |
if [ "${{ env.GITHUB_REF_SLUG_URL }}" = "production" ]; then
echo "VITE_LIVE_PREVIEW_URL=https://www.starknet.io" >> $GITHUB_ENV
echo "VITE_API_BASE_URL=https://www.starknet.io/api" >> $GITHUB_ENV
echo "VITE_DATA_URL=https://www.starknet.io/data" >> $GITHUB_ENV
else
echo "VITE_LIVE_PREVIEW_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev" >> $GITHUB_ENV
echo "VITE_API_BASE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev/api" >> $GITHUB_ENV
echo "VITE_DATA_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev/data" >> $GITHUB_ENV
fi
- name: Build Netlify CMS
run: yarn workspace @starknet-io/netlify-cms build
env:
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-websites.pages.dev/api
VITE_DATA_URL: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev/data
VITE_BACKEND_AUTH_URL: https://netlify-cms-auth.haim-6b2.workers.dev

- name: Deploy Netlify CMS
Expand Down

0 comments on commit 040a757

Please sign in to comment.