From 26f667b792341d1a7c8f3b075bf942c4c3985bbe Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sun, 25 Oct 2020 16:59:49 +0100 Subject: [PATCH] Restrict when gitlab pages job is being ran --- .github/workflows/gh-pages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 76c849f7..855ef524 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 @@ -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