From 1a24fedc6f32cdc4cdbd0bf8a7b9aa31ec57724c Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Wed, 17 Jan 2024 14:22:38 +0100 Subject: [PATCH] moved action order in workflow --- .github/workflows/doc.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index ca2d132..c78f377 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -39,16 +39,6 @@ jobs: - name: Render documentation from ttl run: python sphinx/ttl_to_rst.py - - name: Commit updated documentation - run: | - cd ${GITHUB_WORKSPACE} - git config --global user.email "${GIT_USER_EMAIL}" - git config --global user.name "${GIT_USER_NAME}" - git config pull.rebase false - git add . - git commit -m "Automatic update of github pages" - git push origin master - - name: Build HTML uses: ammaraskar/sphinx-action@master with: @@ -67,3 +57,13 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: sphinx/_build/html + - name: Commit updated documentation + run: | + cd ${GITHUB_WORKSPACE} + git config --global user.email "${GIT_USER_EMAIL}" + git config --global user.name "${GIT_USER_NAME}" + git config pull.rebase false + git add . + git commit -m "Automatic update of github pages" + git push origin master +