From ffef643f17070f05ad9c018c53401aab9bb83bb9 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 21 Dec 2022 11:43:17 +0100 Subject: [PATCH] Update deploy-docs.yml Changed to only upload on changes to docs/** --- .github/workflows/deploy-docs.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 75a41a1..d735639 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -3,6 +3,8 @@ name: Publish Docs on: push: branches: [ "main" ] + paths: + - docs/** workflow_dispatch: @@ -24,12 +26,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v2 - -# - name: Restore Cache -# uses: actions/cache@v3 -# with: -# path: | -# dist + - name: Install Dependencies working-directory: ./docs run: npm install @@ -42,6 +39,7 @@ jobs: uses: actions/upload-pages-artifact@v1 with: path: ./docs/src/.vuepress/dist + deploy: environment: name: github-pages