Skip to content

Merge pull request #10 from ResEmCode/ci/vercel-pipeline #6

Merge pull request #10 from ResEmCode/ci/vercel-pipeline

Merge pull request #10 from ResEmCode/ci/vercel-pipeline #6

Workflow file for this run

name: client-deploy.ci

Check failure on line 1 in .github/workflows/client-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/client-deploy.yml

Invalid workflow file

(Line: 17, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
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 }}