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 +}