From 333fdf7ef30edd89ee3bd2b14f7551e7a2e03965 Mon Sep 17 00:00:00 2001 From: Northword Date: Wed, 18 Dec 2024 16:57:48 +0800 Subject: [PATCH] fix: lint and add docs ci paths filter --- .github/workflows/docs.yml | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8a53a9c..765f8dc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,6 +5,11 @@ on: # using the `master` branch as the default branch. push: branches: [main] + paths: + - 'docs/' + - '**/*.md' + - package.json + - pnpm-lock.json # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -48,7 +53,7 @@ jobs: - name: Build with VitePress run: pnpm docs:build - + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: @@ -65,4 +70,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/package.json b/package.json index 752ce2d..10bc2ab 100644 --- a/package.json +++ b/package.json @@ -101,4 +101,4 @@ "unbuild": "^2.0.0", "vitepress": "^1.5.0" } -} \ No newline at end of file +}