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 0fc3d74 commit 1b98661
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ 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 @@ -32,18 +25,19 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: List directory contents
run: |
echo "Contents of src/components:"
ls -la src/components/
- 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 }}
run: |
npx vercel --prod --token=${{ secrets.VERCEL_TOKEN }} --yes
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 comments on commit 1b98661

Please sign in to comment.