diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 193f003..999ffd4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -25,7 +25,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Documentation builder action - run: cd doc && make html && cd .. && touch ./doc/build/html/.nojekyll + run: cd doc && rm -rf build && make html && cd .. && touch ./build/html/.nojekyll - name: GIT commit and push documentation env: CI_COMMIT_MESSAGE: Continuous Integration documentation update @@ -34,7 +34,7 @@ jobs: git config --global --add safe.directory /__w/inverter/inverter git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "${GITHUB_ACTOR}@noreply.github.com" - git add doc \ + git add doc/build \ && git commit -m "${{ env.CI_COMMIT_MESSAGE }}" \ && git push \ || echo "Nothing to update"