Skip to content

Commit

Permalink
workflow: switch to VitePress
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Sep 25, 2024
1 parent 7b3f1fe commit cebaba7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ on:

jobs:
doc-test:
if: github.ref_name != 'l10n_master'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
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

0 comments on commit cebaba7

Please sign in to comment.