From 57948718cb461c6289c905e43112e725d203e437 Mon Sep 17 00:00:00 2001 From: Maxime Schoemans Date: Wed, 4 Oct 2023 14:56:57 +0200 Subject: [PATCH] Modify docs generation workflow --- .github/workflows/generate_docs.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/generate_docs.yml b/.github/workflows/generate_docs.yml index e202862..0db1337 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -4,7 +4,11 @@ name: Documentation generation CI on: push: - branches: [ master ] + paths: + - '.github/workflows/generate_docs.yml' + - 'docs/**' + branches: + - master jobs: build: @@ -13,7 +17,10 @@ jobs: steps: # checkout branch - - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v4 + with: + sparce-checkout: docs # Install dblatex - name: Install dependencies @@ -57,17 +64,11 @@ jobs: uses: actions/download-artifact@v2 with: name: doc-files - path: docs + path: . # add, commit and push to gh-pages - name: Commit changes - uses: EndBug/add-and-commit@v7 + uses: EndBug/add-and-commit@v9 with: message: 'Update docs' branch: gh-pages - add: '["docs/index.md", - "docs/mobilitydb-workshop.pdf", - "docs/mobilitydb-workshop.epub", - "docs/html/docbook.css", "docs/html/images/*", - "docs/html/*.html"]' -