sandpack ssr styles #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Preview environment on Vercel | |
on: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
deploy-job: | |
runs-on: ubuntu-latest | |
# Update the "Preview" environment with the Vercel deployed URL | |
environment: | |
name: Preview | |
url: ${{ steps.vercel-deploy.outputs.deployment_url }} | |
steps: | |
- uses: actions/setup-node@v4 | |
- uses: actions/checkout@v4 | |
- id: vercel-deploy | |
run: | | |
npx -y vercel deploy --target=preview --token=${{ secrets.VERCEL_TOKEN }} \ | |
--build-env MDX=docs \ | |
--build-env NEXT_PUBLIC_LIBNAME="Poimandres" \ | |
--build-env NEXT_PUBLIC_LIBNAME_SHORT="pmndrs" \ | |
--build-env BASE_PATH= \ | |
--build-env DIST_DIR= \ | |
--build-env OUTPUT=export \ | |
--build-env HOME_REDIRECT= \ | |
--build-env MDX_BASEURL="https://github.com/${{ github.repository }}/raw/${{ github.head_ref }}/docs" \ | |
--build-env EDIT_BASEURL="https://github.com/${{ github.repository }}/edit/${{ github.head_ref }}/docs" \ | |
--build-env NEXT_PUBLIC_URL="$VERCEL_PROJECT_PRODUCTION_URL" \ | |
--build-env ICON="🖨️" \ | |
--build-env LOGO=gutenberg.jpg \ | |
--build-env GITHUB="https://github.com/${{ github.repository }}" \ | |
--build-env DISCORD="${{ secrets.DISCORD }}" \ | |
--build-env THEME_PRIMARY="#323e48" \ | |
--build-env THEME_SCHEME="tonalSpot" \ | |
--build-env THEME_CONTRAST="0" \ | |
--build-env THEME_NOTE="#1f6feb" \ | |
--build-env THEME_TIP="#238636" \ | |
--build-env THEME_IMPORTANT="#8957e5" \ | |
--build-env THEME_WARNING="#d29922" \ | |
--build-env THEME_CAUTION="#da3633" \ | |
> deployment-url.txt | |
echo "deployment_url=$(cat deployment-url.txt)" >> $GITHUB_OUTPUT | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} |