From cebaba7102f7441c328f858df8197ec2519f8a7e Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Mon, 16 Sep 2024 12:12:32 -0700 Subject: [PATCH] workflow: switch to VitePress --- .github/workflows/publish.yml | 17 +++++++++++------ .github/workflows/test.yml | 18 ++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3da0db5ab8e..b0b4da19f03 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35a79d4a9df..ff4ee13c85b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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