Skip to content

Commit

Permalink
Merge pull request #15 from isd-sgcu/feat/deploy-preview
Browse files Browse the repository at this point in the history
feat: deploy preview
  • Loading branch information
punchanabu authored Sep 15, 2024
2 parents 7baafe1 + 1798599 commit 5b1f182
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: '.'

0 comments on commit 5b1f182

Please sign in to comment.