diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6f5a15b..d9074bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,23 +29,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node uses: actions/setup-node@v3 with: - node-version: 18 - cache: 'npm' - - name: Install dependencies - run: npm install + node-version: 20 + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install - name: Build - run: npm run build:doc + uses: borales/actions-yarn@v4 + with: + cmd: build:doc - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - # Upload dist repository - path: './docs' + path: './docs/.vuepress/dist' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1