File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 11name : Generate Documentation
22
33on :
4+ release :
5+ types : [published]
46 push :
57 branches :
68 - main
4244 make html
4345 popd
4446 - name : Deploy documentation
47+ env :
48+ GIT_TAG : ${{ github.event.release.tag_name }}
4549 run : source ci/github-actions/push-docs-gh-pages.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ export GIT_REPO_DIR=${PWD}
34echo " Set git email and name"
45git config user.email
" [email protected] " 56git config user.name " Kevin Sheppard"
@@ -11,22 +12,24 @@ rm -rf devel
1112echo " Make a new devel"
1213mkdir devel
1314echo " Checking for tag"
14- GIT_TAG=$( git name-rev --name-only --tags HEAD)
15- if [[ ${GIT_TAG} == " undefined" ]]; then
16- echo " Tag is ${GIT_TAG} . Not updating main documents"
17- else
15+ if [[ -n " ${GIT_TAG} " ]]; then
1816 echo " Tag ${GIT_TAG} is defined"
1917 echo " Copy docs to root"
2018 echo cp -r ${PWD} /doc/build/html/* ${PWD} /
2119 cp -r ${PWD} /doc/build/html/* ${PWD}
22- git add Documentation/\* .html
23- git add Documentation/\* .css
24- git add Documentation/\* .js
20+ else
21+ echo " Tag is ${GIT_TAG} . Not updating main documents"
2522fi
2623echo " Copy docs to devel"
2724echo cp -r ${PWD} /doc/build/html/* ${PWD} /devel/
2825cp -r ${PWD} /doc/build/html/* ${PWD} /devel/
29- echo " Add devel"
26+ echo " Clean up docs"
27+ cd ${GIT_REPO_DIR} /doc
28+ make clean && git clean -xfd
29+ echo " Add files"
30+ cd ${GIT_REPO_DIR}
31+ git add .
32+ # Ensure key files are added
3033git add devel/** /* || true
3134git add ** /* .html || true
3235git add ** /* .ipynb || true
You can’t perform that action at this time.
0 commit comments