Skip to content

Merge pull request #15 from isd-sgcu/feat/deploy-preview #1

Merge pull request #15 from isd-sgcu/feat/deploy-preview

Merge pull request #15 from isd-sgcu/feat/deploy-preview #1

Workflow file for this run

name: Sync and Deploy to Vercel
on:
push:
branches:
- dev
jobs:
sync-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Push to Personal Repo
env:
PERSONAL_REPO: https://x-access-token:${{ secrets.PERSONAL_GITHUB_TOKEN }}@github.com/korawit-alt/sucu-frontend-preview.git
run: |
git remote add personal $PERSONAL_REPO
git push personal HEAD:dev --force
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
working-directory: '.'