Skip to content

Commit

Permalink
Update docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano authored Dec 11, 2024
1 parent 627d4ab commit a8c11a8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
name: GitHub Pages

on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
workflow_dispatch:

permissions:
contents: read
Expand All @@ -26,6 +26,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -57,12 +59,18 @@ jobs:
pnpm install
- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5

- name: Build with VitePress
run: |
cd docs
pnpm run build
touch out/.nojekyll
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out

# Deployment job
deploy:
Expand Down

0 comments on commit a8c11a8

Please sign in to comment.