From 7771cc0e96eb150d98730334f0e1244512356972 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Wed, 23 Oct 2024 15:21:27 -0700 Subject: [PATCH] workflow: update for VitePress V2 --- .github/workflows/crowdin-upload.yml | 8 +++++--- .github/workflows/publish.yml | 13 +++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/crowdin-upload.yml b/.github/workflows/crowdin-upload.yml index f865cb2b9..ced6303cd 100644 --- a/.github/workflows/crowdin-upload.yml +++ b/.github/workflows/crowdin-upload.yml @@ -18,16 +18,18 @@ jobs: persist-credentials: false submodules: recursive - - uses: actions/setup-node@v3 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: 20 + cache: npm - name: Install dependencies run: npm ci - # Build the site using VuePress + # Build the site using Vitepress # No point pushing to Crowdin if the site build is failing - - name: Run VuePress + - name: Build site run: npm run docs:build - name: Push to Crowdin diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1697d7123..d161cf8d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,10 +3,6 @@ name: Deploy site on: push: branches: [ master ] - paths: - - docs/** - - .github/workflows/publish.yml - - package.json workflow_dispatch: jobs: @@ -22,21 +18,22 @@ jobs: - name: Configure GitHub Pages uses: actions/configure-pages@v5 - - uses: actions/setup-node@v3 + - name: Setup Node + uses: actions/setup-node@v4 with: node-version: 20 + cache: npm - name: Install dependencies run: npm ci - - name: Run VuePress - # Build the site using VuePress + - name: Build site run: npm run docs:build - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3 with: - path: "docs/.vuepress/dist" + path: docs/.vitepress/dist # Deployment job deploy: