Skip to content

Commit

Permalink
Restrict when gitlab pages job is being ran
Browse files Browse the repository at this point in the history
  • Loading branch information
elkowar committed Oct 25, 2020
1 parent 7013aca commit 26f667b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
push:
branches:
- master
paths:
- "docs/**"
- "gen-docs.js"
- "src/widgets/widget_definitions.rs"
- ".github/workflows/**"
jobs:
build:
name: shalzz/zola-deploy-action
Expand All @@ -15,7 +20,7 @@ jobs:
- name: Use nodejs to build widget documentation
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: "12.x"
- run: node gen-docs.js ./src/widgets/widget_definitions.rs >> ./docs/content/main/widgets.md

# Build & deploy
Expand Down

0 comments on commit 26f667b

Please sign in to comment.