Skip to content

Commit

Permalink
back orginal file
Browse files Browse the repository at this point in the history
  • Loading branch information
drakon660 committed Mar 5, 2024
1 parent a834363 commit 7ad24ad
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,37 @@ concurrency:
jobs:
# Build job
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/checkout@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci --package-lock
- name: Build
run: npm run docs:build
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm@5 ci
- name: Build with VitePress
run: |
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./.vitepress/dist
path: docs/.vitepress/dist

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

0 comments on commit 7ad24ad

Please sign in to comment.