Adding citation and pushing docs to remote #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docs | |
on: | |
push: | |
branches: [ "master", "dev"] | |
pull_request: | |
branches: [ "master", "dev"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: HydroCouple | |
- name: Checkout HydroCouple Docs Repo | |
uses: actions/checkout@v3 | |
with: | |
repository: HydroCouple/hydrocouple.github.io | |
ref: dev | |
path: hydrocouple.github.io | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
- name: Install Graphviz and Doxygen | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y graphviz doxygen | |
- name: Build Docs | |
run : | | |
cd HydroCouple/docs | |
doxygen Doxyfile | |
- name: Push Docs to HydroCouple Website Repo | |
uses: actions/checkout@v4 | |
run: | | |
cp -RT HydroCouple/docs/html hydrocouple.github.io/hydrocoupledocs/html | |
cd hydrocouple.github.io | |
git config --local user.name github-actions[bot] | |
git config --local user.email github-actions[bot]@github.com | |
git add -A | |
git commit -m "CI: Updated HydroCouple Docs" | |
git push | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: docs | |
path: docs/html |