diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 458084c0a..38aa1e7e0 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -76,13 +76,31 @@ jobs: make docs # Update main index if this is a release + # index.html could be lfs - name: Update version index - if: github.event_name == 'release' + if: (github.event_name == 'push' && github.ref == 'refs/heads/main') run: | python docs/main_index/render_main_index.py \ --version "${{ steps.version.outputs.version }}" \ --date "$(date +'%d.%m.%Y')" - + git config user.name "github-actions" + git config user.email "github-actions@github.com" + + git add docs/main_index/versions.yaml + git add docs/main_index/index.html + + git commit -m "docs: update versions [skip ci]" + git push origin HEAD:main + + # If push happened on main, also sync same file changes to developer + if [ "${SOURCE_BRANCH}" = "main" ]; then + MAIN_COMMIT="$(git rev-parse HEAD)" + git fetch origin developer + git switch -c sync-to-developer origin/developer + git cherry-pick "${MAIN_COMMIT}" + git push origin HEAD:developer + fi + - name: Checkout gh-pages uses: actions/checkout@v6 with: diff --git a/docs/main_index/versions.yaml b/docs/main_index/versions.yaml index 7f46d545e..9b0801cb0 100644 --- a/docs/main_index/versions.yaml +++ b/docs/main_index/versions.yaml @@ -1,4 +1,8 @@ versions: +- version: 10.0.1 + type: Bug Fix + date: 07.10.2026 + has_docs: true - version: 10.0.0 type: Major date: 10.09.2025