Merge pull request #10 from ResEmCode/ci/vercel-pipeline #6
This file contains hidden or 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: client-deploy.ci | ||
|
Check failure on line 1 in .github/workflows/client-deploy.yml
|
||
| env: | ||
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
| on: | ||
| workflow_run: | ||
| workflows: ['client.ci'] | ||
| types: | ||
| - completed | ||
| jobs: | ||
| Deploy-Preview: | ||
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.workflow_run.head_sha }} | ||
| - name: Install Vercel | ||
| run: npm install --global vercel@latest | ||
| - name: Pull Vercel | ||
| run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | ||
| - name: Build Artifacts | ||
| run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | ||
| - name: Deploy Project to Vercel | ||
| run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | ||