Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost0159 authored Nov 21, 2024
1 parent c439dc9 commit 61743ab
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ jobs:
node-version: 20
cache: 'npm'

- name: Install dependencies and build
- name: Clean up node_modules and package-lock.json
run: |
if (Test-Path dist) { Remove-Item -Recurse -Force dist }
npm install
npm run build
Remove-Item -Recurse -Force node_modules
Remove-Item package-lock.json
- name: Install dependencies
run: npm install

- name: Install Rollup optional dependency
run: npm install @rollup/rollup-win32-x64-msvc

- name: Build the project
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 61743ab

Please sign in to comment.