Skip to content

Commit

Permalink
Fix the deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JCapucho committed Feb 24, 2025
1 parent 027ac52 commit 5635476
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/deploy-microsite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
paths:
- "microsite/**"
- ".github/workflows/deploy-microsite.yml"

jobs:
build:
Expand All @@ -18,21 +19,25 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 18

- uses: pnpm/action-setup@v4
node-version: 21

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build website
run: pnpm build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
path: microsite/build

deploy:
name: Deploy to GitHub Pages
Expand Down

0 comments on commit 5635476

Please sign in to comment.