|
|
@ -153,18 +153,18 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Not needed if lastUpdated is not enabled
|
|
|
|
fetch-depth: 0 # Not needed if lastUpdated is not enabled
|
|
|
|
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
|
|
|
|
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
|
|
|
|
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
|
|
|
|
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
|
|
|
|
- name: Setup Node
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
node-version: 20
|
|
|
|
cache: npm # or pnpm / yarn
|
|
|
|
cache: npm # or pnpm / yarn
|
|
|
|
- name: Setup Pages
|
|
|
|
- name: Setup Pages
|
|
|
|
uses: actions/configure-pages@v3
|
|
|
|
uses: actions/configure-pages@v4
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci # or pnpm install / yarn install / bun install
|
|
|
|
run: npm ci # or pnpm install / yarn install / bun install
|
|
|
|
- name: Build with VitePress
|
|
|
|
- name: Build with VitePress
|
|
|
@ -172,7 +172,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
|
|
|
|
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
|
|
|
|
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
|
|
|
|
touch docs/.vitepress/dist/.nojekyll
|
|
|
|
touch docs/.vitepress/dist/.nojekyll
|
|
|
|
- name: Upload artifact
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v2
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: docs/.vitepress/dist
|
|
|
|
path: docs/.vitepress/dist
|
|
|
|
|
|
|
|
|
|
|
@ -187,7 +187,7 @@ Don't enable options like _Auto Minify_ for HTML code. It will remove comments f
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v2
|
|
|
|
uses: actions/deploy-pages@v4
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
::: warning
|
|
|
|
::: warning
|
|
|
|