From ea7a7f3ee4ae6dd744175edb8ceccd72f5b23215 Mon Sep 17 00:00:00 2001 From: Marko Kosunen Date: Mon, 22 Jan 2024 17:14:24 +0200 Subject: [PATCH] Update workflow --- .github/workflows/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7c0b602..193f003 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 .. && rm -rf ./docs && mv doc/build/html ./docs/ && touch ./docs/.nojekyll && touch ./docs/.gitignore + run: cd doc && make html && cd .. && touch ./doc/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 docs \ + git add doc \ && git commit -m "${{ env.CI_COMMIT_MESSAGE }}" \ && git push \ || echo "Nothing to update" @@ -59,7 +59,7 @@ jobs: uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: './docs' + path: './doc/build/html' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4