From 09de2c01c75bfcc10e26efa769a6a2356e5e8b53 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:01:09 +0200 Subject: [PATCH 1/5] also update developer --- .github/workflows/build_documentation.yml | 22 ++++++++++++++++++++-- docs/main_index/versions.yaml | 4 ++++ 2 files changed, 24 insertions(+), 2 deletions(-) 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 From 9fc490aa2b420c8cd5709cc6b5c741f802636b99 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:16:03 +0200 Subject: [PATCH 2/5] mofified for testing --- .github/workflows/build_documentation.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 38aa1e7e0..704032428 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -78,7 +78,7 @@ jobs: # Update main index if this is a release # index.html could be lfs - name: Update version index - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') + #if: (github.event_name == 'push' && github.ref == 'refs/heads/main') run: | python docs/main_index/render_main_index.py \ --version "${{ steps.version.outputs.version }}" \ @@ -86,20 +86,16 @@ jobs: 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 + git add docs/main_index/versions.yaml docs/main_index/index.html + git commit -m "Update version index for" [[skip ci]] + git push origin HEAD:${{ github.ref_name }} # 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 + git fetch origin developer + git switch -c sync-to-developer origin/developer + git cherry-pick "${MAIN_COMMIT}" + git push origin HEAD:developer + - name: Checkout gh-pages uses: actions/checkout@v6 From 4f86427a9fdbef38029cdd35e4dabf547ac6f4e9 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:30:31 +0200 Subject: [PATCH 3/5] fixed error message --- .github/workflows/build_documentation.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 704032428..4d4f2f725 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -83,11 +83,15 @@ jobs: python docs/main_index/render_main_index.py \ --version "${{ steps.version.outputs.version }}" \ --date "$(date +'%d.%m.%Y')" + + #if: (github.event_name == 'push' && github.ref == 'refs/heads/main') + - name: Commit and Push version index changes + run: | git config user.name "github-actions" git config user.email "github-actions@github.com" git add docs/main_index/versions.yaml docs/main_index/index.html - git commit -m "Update version index for" [[skip ci]] + git commit -m "Update version index for [skip ci]" git push origin HEAD:${{ github.ref_name }} # If push happened on main, also sync same file changes to developer From d8c67354d68e202b5ce893340a89931536dbcdb3 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:31:35 +0200 Subject: [PATCH 4/5] temporarily disable all workflows --- .github/workflows/build_wheel.yml | 2 +- .github/workflows/cmake.yaml | 4 +++- .github/workflows/conda_library.yaml | 5 +++-- .github/workflows/conda_python.yaml | 3 ++- .github/workflows/run_tests.yaml | 5 +++-- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 9e1d2df20..355d38d18 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -2,7 +2,7 @@ name: Build wheel on: workflow_dispatch: - pull_request: + #pull_request: push: branches: - main diff --git a/.github/workflows/cmake.yaml b/.github/workflows/cmake.yaml index c6903502b..aa1b496b5 100644 --- a/.github/workflows/cmake.yaml +++ b/.github/workflows/cmake.yaml @@ -1,6 +1,8 @@ name: Native CMake Build -on: [push, pull_request, workflow_dispatch] +#on: [push, pull_request, workflow_dispatch] + +on: workflow_dispatch env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/conda_library.yaml b/.github/workflows/conda_library.yaml index 58a504bd6..aa6feaded 100644 --- a/.github/workflows/conda_library.yaml +++ b/.github/workflows/conda_library.yaml @@ -1,7 +1,8 @@ name: Build slsdetlib -on: [pull_request] - +#on: [pull_request] +on: workflow_dispatch + jobs: build: strategy: diff --git a/.github/workflows/conda_python.yaml b/.github/workflows/conda_python.yaml index d95d430b8..f870b407d 100644 --- a/.github/workflows/conda_python.yaml +++ b/.github/workflows/conda_python.yaml @@ -1,6 +1,7 @@ name: slsdet -on: [pull_request] +#on: [pull_request] +on: workflow_dispatch jobs: build: diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 90bf980be..ea158cb34 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -1,8 +1,9 @@ name: Run Simulator Tests on: - push: - + #push: + workflow_dispatch: + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) From 153f9088919d558ce7d4e97550a74b5107715a47 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:43:18 +0200 Subject: [PATCH 5/5] reference branch with /ref/head --- .github/workflows/build_documentation.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 4d4f2f725..40d1900e6 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -91,14 +91,15 @@ jobs: git config user.email "github-actions@github.com" git add docs/main_index/versions.yaml docs/main_index/index.html - git commit -m "Update version index for [skip ci]" - git push origin HEAD:${{ github.ref_name }} + git commit -m "Update version index [skip ci]" + git push origin HEAD:refs/heads/${{ github.ref_name }} # If push happened on main, also sync same file changes to developer + 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 + git push origin HEAD:refs/heads/developer - name: Checkout gh-pages