Files
blackroad-private-enhancements/.github/workflows/vercel-deploy.yml
blackboxprogramming 4acdf1f8ac
Some checks failed
☁️ Cloudflare Deployment / Deploy Workers (push) Has been cancelled
🚂 Railway Deployment / Deploy to Railway (push) Has been cancelled
🌐 Unified Multi-Platform Deployment / 🔍 Prepare (push) Has been cancelled
▲ Vercel Deployment / Deploy to Vercel (push) Has been cancelled
🌐 Unified Multi-Platform Deployment / 🚀 Deploy all platforms (push) Has been cancelled
🔒 Security Scanning / 📦 Dependencies (push) Failing after 40s
🔒 Security Scanning / 🔐 Secrets (push) Failing after 1m34s
💾 Automated Backup / 📦 Backup infrastructure (push) Failing after 45s
🏥 Infrastructure Health Monitoring / 🔍 Health Check (push) Successful in 2s
Initial commit — RoadCode import
2026-03-08 20:04:29 -05:00

50 lines
1.4 KiB
YAML

name: ▲ Vercel Deployment
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
deploy:
name: Deploy to Vercel
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🔧 Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: 📦 Install Vercel CLI
run: npm install -g vercel@latest
- name: 🔗 Pull environment
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- name: 🏗️ Build
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: 🚀 Deploy
id: deploy
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | tee deployment-url.txt
else
vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | tee deployment-url.txt
fi
echo "url=$(cat deployment-url.txt | tail -1)" >> $GITHUB_OUTPUT
- name: 📊 Summary
run: |
echo "### ▲ Vercel Deployment Success" >> $GITHUB_STEP_SUMMARY
echo "- **URL**: ${{ steps.deploy.outputs.url }}" >> $GITHUB_STEP_SUMMARY