Migrate @kadena/docs to use Vercel CLI to deploy to preview environments. #6
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: Creating Preview environments | |
on: | |
pull_request: | |
jobs: | |
create-preview-env: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- app: 'Docs' | |
projectToken: VERCEL_DOCS_ID | |
- app: 'Tools' | |
projectToken: VERCEL_TOOLS_ID | |
name: Preview Deployment | |
uses: ./.github/workflows/deploy-preview.yml | |
with: | |
app: ${{ matrix.app}} | |
secrets: | |
VERCEL_PROJECT_ID: ${{ secrets[matrix.projectToken] }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |