Skip to content

patch:better-intepretation of the locked progess:scraper #68

patch:better-intepretation of the locked progess:scraper

patch:better-intepretation of the locked progess:scraper #68

Workflow file for this run

name: πŸš€ Deployments
on:
push:
branches:
- main
- staging
workflow_dispatch:
jobs:
lint:
uses: ./.github/workflows/lint.yml
deploy:
needs: lint
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: πŸ› οΈ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: πŸ’Ύ Cache Vercel CLI
uses: actions/cache@v4
with:
path: ~/.vercel
key: ${{ runner.OS }}-vercel-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-vercel-
- name: πŸ“¦ Install Vercel CLI
run: npm install -g vercel
- name: πŸ” Detect changed projects
id: changed
run: |
git diff --quiet HEAD^ HEAD ./apps/platform || echo "platform_changed=true" >> $GITHUB_OUTPUT
git diff --quiet HEAD^ HEAD ./apps/website || echo "website_changed=true" >> $GITHUB_OUTPUT
git diff --quiet HEAD^ HEAD ./apps/server || echo "server_changed=true" >> $GITHUB_OUTPUT
- name: 🎯 Deploy Platform to Staging
if: github.ref == 'refs/heads/staging' && steps.changed.outputs.platform_changed == 'true'
run: vercel --token ${VERCEL_TOKEN} ./apps/platform
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PLATFORM_PROJECT_ID }}
- name: πŸš€ Deploy Platform to Production
if: github.ref == 'refs/heads/main' && steps.changed.outputs.platform_changed == 'true'
run: vercel --token ${VERCEL_TOKEN} --prod ./apps/platform
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PLATFORM_PROJECT_ID }}
- name: 🌐 Deploy Website to Production
if: github.ref == 'refs/heads/main' && steps.changed.outputs.website_changed == 'true'
run: vercel --token ${VERCEL_TOKEN} --prod ./apps/website
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }}