Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
harilvfs committed Nov 28, 2024
2 parents 0e8944f + 7789d18 commit 5f82710
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/deploy.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
name: Deploy VitePress site to Pages
name: Deploy VitePress site

on:
workflow_dispatch:
push:
branches: [main]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # Not needed if lastUpdated is not enabled

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: npm ci
working-directory: docs

- name: Build with VitePress
run: npm run docs:build
run: npm run build:docs
working-directory: docs

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
path: docs/dist

deploy:
environment:
Expand Down

0 comments on commit 5f82710

Please sign in to comment.