Skip to content

Commit

Permalink
fix: force docs to point to dev docs (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored Nov 21, 2023
1 parent 68fceb7 commit fb3937c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ jobs:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}

adapt-landing-page-dev:
uses: ./.github/workflows/update-gh-pages.yml
needs: [doc-deploy-dev]
secrets: inherit

doc-index-dev:
name: "Deploy dev docs index"
if: github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -205,6 +210,11 @@ jobs:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}

adapt-landing-page-release:
uses: ./.github/workflows/update-gh-pages.yml
needs: [docs-release]
secrets: inherit

doc-index-release:
name: "Deploy release docs index"
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/update-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: Update index.html in GH Pages

on:
workflow_dispatch:
workflow_call:

jobs:
update-gh-pages:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Replace 'version/stable' with 'version/dev' in index.html
run: |
sed -i 's/version\/stable/version\/dev/g' index.html
- name: "Commit changes"
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "update index.html"

0 comments on commit fb3937c

Please sign in to comment.