Merge pull request #15 from isd-sgcu/feat/deploy-preview #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '.' |