Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into production #1737

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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