1
0
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:
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 - 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:

View File

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