@@ -86,25 +86,25 @@ jobs:
86
86
with :
87
87
category : " /language:${{matrix.language}}"
88
88
89
- - if : github.ref == 'refs/heads/main '
89
+ - if : github.ref == 'refs/heads/dev/milesp/doc-site-from-branch '
90
90
name : Check for Changes in main
91
91
id : check_main_changed
92
92
run : |
93
- git fetch origin main
94
- if [[ $(git rev-list -n 1 HEAD) == $(git rev-list -n 1 origin/main ) ]]; then
93
+ git fetch origin dev/milesp/doc-site-from-branch
94
+ if [[ $(git rev-list -n 1 HEAD) == $(git rev-list -n 1 origin/dev/milesp/doc-site-from-branch ) ]]; then
95
95
echo "No changes in main"
96
96
echo "deploy_docs_site=false" >> $GITHUB_ENV
97
97
else
98
98
echo "Changes detected in main"
99
99
echo "deploy_docs_site=true" >> $GITHUB_ENV
100
- - if : github.ref == 'refs/heads/main '
100
+ - if : github.ref == 'refs/heads/dev/milesp/doc-site-from-branch '
101
101
name : Export Main Changed Status
102
102
run : |
103
103
echo "Main changed status: $deploy_docs_site"
104
104
env :
105
105
deploy_docs_site : ${{ steps.check_main_changed.outputs.deploy_docs_site }}
106
106
107
- - if : github.ref == 'refs/heads/main ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
107
+ - if : github.ref == 'refs/heads/dev/milesp/doc-site-from-branch ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
108
108
name : Clean up Sphinx Build Directory
109
109
run : |
110
110
find build/docs/sphinx -name '*.doctree' -delete
@@ -113,11 +113,11 @@ jobs:
113
113
find build/docs/sphinx -name '*.inv' -delete
114
114
find build/docs/sphinx -name '*.gz' -delete
115
115
116
- - if : github.ref == 'refs/heads/main ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
116
+ - if : github.ref == 'refs/heads/dev/milesp/doc-site-from-branch ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
117
117
name : Create .nojekyll file
118
118
run : touch build/docs/sphinx/.nojekyll
119
119
120
- - if : github.ref == 'refs/heads/main ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
120
+ - if : github.ref == 'refs/heads/dev/milesp/doc-site-from-branch ' && matrix.language == 'c-cpp' && env.deploy_docs_site == 'true'
121
121
name : Deploy to GitHub Pages
122
122
uses : JamesIves/github-pages-deploy-action@v4
123
123
with :
0 commit comments