Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy documentation using JamesIves/github-pages-deploy-action #62

Merged
merged 3 commits into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 20 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ on:
push:
branches: [ unstable ]

env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
CTEST_PARALLEL_LEVEL: 1
CTEST_OUTPUT_ON_FAILURE: 1
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
OMPI_MCA_rmaps_base_oversubscribe: "yes"

permissions:
contents: write

jobs:
build:

Expand All @@ -15,36 +26,20 @@ jobs:
image: materialstheory/solid_dmft_ci

steps:
- uses: actions/checkout@v2
with:
path: 'solid_dmft.src'
- uses: actions/checkout@v4

- name: Build solid_dmft
run: |
mkdir solid_dmft.build && cd solid_dmft.build && cmake ../solid_dmft.src -DBuild_Documentation=ON -DMPIEXEC_PREFLAGS='--allow-run-as-root'
make
cmake -S . -B build/ -DBuild_Documentation=ON
cmake --build build/ --verbose

- name: Test solid_dmft
run: |
cd solid_dmft.build
ctest --output-on-failure
cmake --build build/ --target test

- name: checkout github pages branch
uses: actions/checkout@v2
- name: Deploy pages 🚀
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is of course highly critical.

uses: JamesIves/github-pages-deploy-action@v4
with:
ref: gh-pages
path: 'gh-pages'

- name: copy documentation files
run: rsync -av solid_dmft.build/doc/html/ gh-pages/

- name: commit changes to gh-pages branch
run: |
cd gh-pages/
git config user.name github-actions
git config user.email [email protected]
git add -f .
git commit -m "generated doc"
git push origin gh-pages


branch: gh-pages
folder: build/doc/html/
single-commit: true
Loading