Skip to content

Commit

Permalink
chore: frontend manual deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Mar 24, 2024
1 parent 811625e commit 5b2f521
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,25 @@ jobs:

- name: Run tests
run: yarn test
preview-webapp:
name: Vercel Preview Deployment
runs-on: ubuntu-latest
needs:
- build
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- name: Install Yarn 4
run: |
corepack enable
yarn set version berry
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ key.txt
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.vercel
9 changes: 5 additions & 4 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"github": {
"enabled": true,
"silent": true
}
"git": {
"deploymentEnabled": false
},
"buildCommand": "yarn build",
"outputDirectory": "apps/web/.next"
}

0 comments on commit 5b2f521

Please sign in to comment.