1
0
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:
lifehackerhansol
2024-09-16 12:12:32 -07:00
parent fb0a7bd4b1
commit 62bc8af561
2 changed files with 20 additions and 13 deletions

View File

@@ -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:

View File

@@ -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