Skip to content

Commit

Permalink
Add deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew7li committed Aug 1, 2023
1 parent 94c59de commit d5e35bd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Andrew Li's Deploy to Private Repo Action
name: 😎 Deploy Production

on:
workflow_dispatch:
push:
branches: [t3-rewrite]

jobs:
build-deploy-frontend:
name: πŸŽ‰ Build and Deploy Frontend
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2

- name: πŸ”¨ Set up Node 16.17.0
uses: actions/setup-node@v2
with:
node-version: 16.17.0

- name: ⛏ Build Frontend
run: |
npm ci
npm run lint
npm run build
cd ..
- name: ☁ Deploy to Vercel Git Repo
uses: wei/git-sync@v3
with:
source_repo: "https://github.com/fullstackatbrown/carte-blanche.git"
source_branch: "t3-rewrite"
destination_repo: "https://andrew7li:${{ secrets.PAT }}@github.com/andrew7li/carte-blanche-deploy.git"
destination_branch: "deploy"

0 comments on commit d5e35bd

Please sign in to comment.