Skip to content

Commit

Permalink
chore: Deploy Vitepress with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Nov 6, 2024
1 parent b0ad2dd commit e9f914d
Show file tree
Hide file tree
Showing 3 changed files with 2,288 additions and 30 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,36 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# - 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
# - name: Build with VitePress
# run: pnpm --filter "docs" build
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: docs/.vitepress/dist
- 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
working-directory: ./docs
run: npm ci
- name: Build with VitePress
working-directory: ./docs
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading

0 comments on commit e9f914d

Please sign in to comment.