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 ce4ed1e commit c439dc9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,21 @@ jobs:
build-and-deploy:
runs-on: windows-latest
steps:
# Step 1: Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v3

# Step 2: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20 # Use a stable Node.js version
node-version: 20
cache: 'npm'

# Step 3: Install dependencies and build the project
- name: Install dependencies and build
run: |
if exist dist rd /s /q dist # Clean the old dist folder on Windows
if (Test-Path dist) { Remove-Item -Recurse -Force dist }
npm install
npm run build
# Step 4: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit c439dc9

Please sign in to comment.