File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ jobs:
150150 cname : ${{ env.DOCUMENTATION_CNAME }}
151151 token : ${{ secrets.GITHUB_TOKEN }}
152152
153+ adapt-landing-page-dev :
154+ uses : ./.github/workflows/update-gh-pages.yml
155+ needs : [doc-deploy-dev]
156+ secrets : inherit
157+
153158 doc-index-dev :
154159 name : " Deploy dev docs index"
155160 if : github.ref == 'refs/heads/main'
@@ -205,6 +210,11 @@ jobs:
205210 cname : ${{ env.DOCUMENTATION_CNAME }}
206211 token : ${{ secrets.GITHUB_TOKEN }}
207212
213+ adapt-landing-page-release :
214+ uses : ./.github/workflows/update-gh-pages.yml
215+ needs : [docs-release]
216+ secrets : inherit
217+
208218 doc-index-release :
209219 name : " Deploy release docs index"
210220 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+
2+ name : Update index.html in GH Pages
3+
4+ on :
5+ workflow_dispatch :
6+ workflow_call :
7+
8+ jobs :
9+ update-gh-pages :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+ with :
16+ ref : gh-pages
17+
18+ - name : Replace 'version/stable' with 'version/dev' in index.html
19+ run : |
20+ sed -i 's/version\/stable/version\/dev/g' index.html
21+
22+ - name : " Commit changes"
23+ uses : EndBug/add-and-commit@v9
24+ with :
25+ default_author : github_actions
26+ message : " update index.html"
You can’t perform that action at this time.
0 commit comments