Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Mar 24, 2024
1 parent 0fa1fe8 commit 4229f20
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,17 @@ jobs:
yarn scripts strapi export --environment docker --ci
cp config/docker.local.env config/development.local.env
cp data/db/sami-production.db data/db/sami-dev.db
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build and deploy
run: yarn scripts cli build --environment=development --no-export --no-preview --deploy
- name: Build
run: yarn scripts cli build --environment=development --no-export --no-preview --no-deploy
# HACK - split build-deploy above for easier debugging
- name: Deploy
run: |
cd frontend
vercel login --token=${{ secrets.VERCEL_TOKEN }}
vercel pull --yes --environment=production
vercel build
vercel deploy --prebuilt
# NOTE - also possible to do without intermediate but requires interaction with live cloud-run api
# - name: Generate preview
Expand Down

0 comments on commit 4229f20

Please sign in to comment.