Update deploy-docs.yml
Changed to only upload on changes to docs/**
This commit is contained in:
parent
9d0030f9d8
commit
ffef643f17
|
@ -3,6 +3,8 @@ name: Publish Docs
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
paths:
|
||||||
|
- docs/**
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -24,12 +26,7 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
|
|
||||||
# - name: Restore Cache
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# dist
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
run: npm install
|
run: npm install
|
||||||
|
@ -42,6 +39,7 @@ jobs:
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./docs/src/.vuepress/dist
|
path: ./docs/src/.vuepress/dist
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
|
|
Loading…
Reference in New Issue