mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
also update developer
This commit is contained in:
1 parent
bf6c5f2c8a
commit
09de2c01c7
2 files changed
+24
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user