mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-28 18:59:50 +02:00
workflow: switch to VitePress
This commit is contained in:
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@@ -18,17 +18,22 @@ jobs:
|
|||||||
- name: Configure GitHub Pages
|
- name: Configure GitHub Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.2'
|
node-version: 20
|
||||||
bundler-cache: true
|
cache: npm
|
||||||
|
|
||||||
- name: Run Jekyll
|
- name: Install dependencies
|
||||||
# Build the site using Jekyll
|
run: npm ci
|
||||||
run: JEKYLL_ENV=production bundle exec jekyll build
|
|
||||||
|
- name: Build site
|
||||||
|
run: npm run docs:build
|
||||||
|
|
||||||
- name: Upload GitHub Pages artifact
|
- name: Upload GitHub Pages artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: docs/.vitepress/dist
|
||||||
|
|
||||||
# Deployment job
|
# Deployment job
|
||||||
deploy:
|
deploy:
|
||||||
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@@ -5,7 +5,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
doc-test:
|
doc-test:
|
||||||
if: github.ref_name != 'l10n'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -14,11 +13,14 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.2'
|
node-version: 20
|
||||||
bundler-cache: true
|
cache: npm
|
||||||
|
|
||||||
- name: Run Jekyll
|
- name: Install dependencies
|
||||||
# Build the site using Jekyll
|
run: npm ci
|
||||||
run: JEKYLL_ENV=production bundle exec jekyll build
|
|
||||||
|
- name: Build site
|
||||||
|
run: npm run docs:build
|
||||||
|
Reference in New Issue
Block a user