Fix static property of pieces #41
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
# Andrew Li's Deploy to Private Repo Action | |
name: π Deploy Production | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
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 .. | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
UPLOADTHING_SECRET=: ${{ secrets.UPLOADTHING_SECRET }} | |
UPLOADTHING_APP_ID: ${{ secrets.UPLOADTHING_APP_ID }} | |
- name: β Deploy to Vercel Git Repo | |
uses: wei/git-sync@v3 | |
with: | |
source_repo: "https://github.com/fullstackatbrown/carte-blanche.git" | |
source_branch: "main" | |
destination_repo: "https://andrew7li:${{ secrets.PAT }}@github.com/andrew7li/carte-blanche-deploy.git" | |
destination_branch: "deploy" |