👷 Update CI workflow to include checkout step for preview jobs #36
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: Vercel Previews Deployment | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
Default example: | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: .github/workflows/common/preview.yaml | |
with: | |
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_DEFAULT }} | |
vercel_scope: ${{ secrets.VERCEL_SCOPE }} | |
vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
Upgrade example: | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: .github/workflows/common/preview.yaml | |
with: | |
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }} | |
vercel_scope: ${{ secrets.VERCEL_SCOPE }} | |
vercel_token: ${{ secrets.VERCEL_TOKEN }} |