Skip to content

Commit

Permalink
Add logic to push to github.io.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Mar 16, 2024
1 parent 3ada6e7 commit 78e8ffa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/render_user_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ jobs:
pandoc -v
cd manual
make dist
- name: Push to github.io
shell: bash
run: |
mv manual/build tmp
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"
export git_hash=$(git describe --always HEAD)
git checkout gh-pages
mv tmp/* .
rm -rf tmp
git commit -am "Generated user manual from Git commit ${git_hash}"
git push

0 comments on commit 78e8ffa

Please sign in to comment.