Restrict when gitlab pages job is being ran
This commit is contained in:
parent
7013acac63
commit
26f667b792
1 changed files with 6 additions and 1 deletions
7
.github/workflows/gh-pages.yml
vendored
7
.github/workflows/gh-pages.yml
vendored
|
@ -3,6 +3,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths:
|
||||||
|
- "docs/**"
|
||||||
|
- "gen-docs.js"
|
||||||
|
- "src/widgets/widget_definitions.rs"
|
||||||
|
- ".github/workflows/**"
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: shalzz/zola-deploy-action
|
name: shalzz/zola-deploy-action
|
||||||
|
@ -15,7 +20,7 @@ jobs:
|
||||||
- name: Use nodejs to build widget documentation
|
- name: Use nodejs to build widget documentation
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: "12.x"
|
||||||
- run: node gen-docs.js ./src/widgets/widget_definitions.rs >> ./docs/content/main/widgets.md
|
- run: node gen-docs.js ./src/widgets/widget_definitions.rs >> ./docs/content/main/widgets.md
|
||||||
|
|
||||||
# Build & deploy
|
# Build & deploy
|
||||||
|
|
Loading…
Add table
Reference in a new issue