mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-27 10:24:37 +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
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- uses: ruby/setup-ruby@v1
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
ruby-version: '3.2'
|
||||
bundler-cache: true
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Run Jekyll
|
||||
# Build the site using Jekyll
|
||||
run: JEKYLL_ENV=production bundle exec jekyll build
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build site
|
||||
run: npm run docs:build
|
||||
|
||||
- name: Upload GitHub Pages artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: docs/.vitepress/dist
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@@ -5,7 +5,6 @@ on:
|
||||
|
||||
jobs:
|
||||
doc-test:
|
||||
if: github.ref_name != 'l10n'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -14,11 +13,14 @@ jobs:
|
||||
persist-credentials: false
|
||||
submodules: recursive
|
||||
|
||||
- uses: ruby/setup-ruby@v1
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
ruby-version: '3.2'
|
||||
bundler-cache: true
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Run Jekyll
|
||||
# Build the site using Jekyll
|
||||
run: JEKYLL_ENV=production bundle exec jekyll build
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build site
|
||||
run: npm run docs:build
|
||||
|
Reference in New Issue
Block a user