diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 458084c0a..40d1900e6 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -76,13 +76,32 @@ 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')" - + + #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 [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:refs/heads/developer + + - name: Checkout gh-pages uses: actions/checkout@v6 with: 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.) 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