From 39087384884d09d16ba7415918f86365d12f1e07 Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Tue, 29 Nov 2022 14:16:55 -0700 Subject: [PATCH 1/5] Adding action to build documents. --- .github/workflows/doc-action.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/doc-action.yml diff --git a/.github/workflows/doc-action.yml b/.github/workflows/doc-action.yml new file mode 100644 index 00000000..b3d426ca --- /dev/null +++ b/.github/workflows/doc-action.yml @@ -0,0 +1,24 @@ +name: Build docs +on: [push] +jobs: + build_docs: + runs-on: [self-hosted, linux] + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - run: cd .. && rm -Rf raven && git clone https://github.com/idaholab/raven.git + - run: python3 ../raven/scripts/install_plugins.py -s TEAL + - run: python3 ../raven/scripts/install_plugins.py -s ${{ github.workspace }} + - run: WD=`(cd ../../.. && pwd)` && export RAVEN_LIBS_NAME="raven_libs_"`basename $WD` && ../raven/scripts/establish_conda_env.sh --install + - run: cd ../raven && ./build_raven + - name: Build documentation + run: | + cd ../raven + source ./scripts/establish_conda_env.sh --load + cd ../HERON + ./doc/make_docs.sh + - name: Archive documents + uses: actions/upload-artifact@v3 + with: + name: pdfs + path: doc/pdfs From 94a9c627db9387d05c40f9dfed46a30ca19afa7d Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Tue, 29 Nov 2022 15:20:52 -0700 Subject: [PATCH 2/5] Also grab sqa documents. --- .github/workflows/doc-action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc-action.yml b/.github/workflows/doc-action.yml index b3d426ca..019e729f 100644 --- a/.github/workflows/doc-action.yml +++ b/.github/workflows/doc-action.yml @@ -21,4 +21,6 @@ jobs: uses: actions/upload-artifact@v3 with: name: pdfs - path: doc/pdfs + path: | + doc/pdfs + doc/sqa/sqa_built_documents From 68afb14f5f7479be6a965252137a11eae945681e Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Thu, 1 Dec 2022 10:58:25 -0700 Subject: [PATCH 3/5] Update docs. --- .github/workflows/doc-action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc-action.yml b/.github/workflows/doc-action.yml index 019e729f..3f991688 100644 --- a/.github/workflows/doc-action.yml +++ b/.github/workflows/doc-action.yml @@ -17,6 +17,7 @@ jobs: source ./scripts/establish_conda_env.sh --load cd ../HERON ./doc/make_docs.sh + - run: update_heron_docs.sh doc/pdfs/*.pdf doc/sqa/sqa_built_documents/*.pdf - name: Archive documents uses: actions/upload-artifact@v3 with: From b96b5c1f39d96d74bc7e094ebf6b23c0d76c462b Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Mon, 5 Dec 2022 15:07:17 -0700 Subject: [PATCH 4/5] Only run on devel branch. --- .github/workflows/doc-action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc-action.yml b/.github/workflows/doc-action.yml index 3f991688..6c9b0e50 100644 --- a/.github/workflows/doc-action.yml +++ b/.github/workflows/doc-action.yml @@ -1,5 +1,8 @@ name: Build docs -on: [push] +on: + push: + branches: + - devel jobs: build_docs: runs-on: [self-hosted, linux] From c23c7896f8ab0e3ad82100b1921ea23f34f6d790 Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Mon, 5 Dec 2022 15:27:14 -0700 Subject: [PATCH 5/5] Archive documentents first. --- .github/workflows/doc-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-action.yml b/.github/workflows/doc-action.yml index 6c9b0e50..0183ecf1 100644 --- a/.github/workflows/doc-action.yml +++ b/.github/workflows/doc-action.yml @@ -20,7 +20,6 @@ jobs: source ./scripts/establish_conda_env.sh --load cd ../HERON ./doc/make_docs.sh - - run: update_heron_docs.sh doc/pdfs/*.pdf doc/sqa/sqa_built_documents/*.pdf - name: Archive documents uses: actions/upload-artifact@v3 with: @@ -28,3 +27,4 @@ jobs: path: | doc/pdfs doc/sqa/sqa_built_documents + - run: update_heron_docs.sh doc/pdfs/*.pdf doc/sqa/sqa_built_documents/*.pdf