Update deploy-docs.yml

Changed to only upload on changes to docs/**
This commit is contained in:
Andrew Lalis 2022-12-21 11:43:17 +01:00 committed by GitHub
parent 9d0030f9d8
commit ffef643f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -3,6 +3,8 @@ name: Publish Docs
on:
push:
branches: [ "main" ]
paths:
- docs/**
workflow_dispatch:
@ -25,11 +27,6 @@ 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