Skip to content

Commit

Permalink
update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
terrancrypt committed Jul 17, 2024
1 parent 1b98661 commit e06e1a0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Clear Git cache and reset
run: |
git rm -rf --cached .
git reset --hard
- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -25,19 +32,13 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build project
run: pnpm build

- name: Deploy to Vercel
if: github.event_name != 'pull_request'
run: |
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} --yes
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }} --yes

0 comments on commit e06e1a0

Please sign in to comment.