Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosunen committed Jan 22, 2024
1 parent b7dd06c commit 609a726
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,23 @@ jobs:
name: Build documentation
steps:
- name: Checkout
uses: actions/checkout@v3
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
- name: GIT commit and push documentation
env:
CI_COMMIT_MESSAGE: Continuous Integration documentation update
CI_COMMIT_AUTHOR: Continuous Integration
run: 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 commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push
run:
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 commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push || echo "Nothing to update"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages

pages_deploy:
needs: doc_build_job
permissions:
contents: read
pages: write
Expand All @@ -52,7 +57,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Expand Down

0 comments on commit 609a726

Please sign in to comment.