ci: revert a few script changes in release CI (#1916)

This commit is contained in:
Clement Tsang
2025-12-24 23:47:39 -05:00
committed by GitHub
parent 2c623399ae
commit af5eccc07f
6 changed files with 16 additions and 21 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ jobs:
merge-multiple: true
- name: Execute choco packaging script
run: ./scripts/ci/generate_choco.sh
run: |
python "./scripts/windows/choco/choco_packager.py" "./release/bottom_x86_64-pc-windows-msvc.zip" ${{ env.RELEASE_VERSION }} "./scripts/windows/choco/bottom.nuspec.template" "./scripts/windows/choco/chocolateyinstall.ps1.template" "bottom.nuspec" "tools/chocolateyinstall.ps1" "tools/"
zip -r choco.zip "bottom.nuspec" "tools"
- name: Move release file into release directory
shell: bash
+13 -3
View File
@@ -69,8 +69,15 @@ jobs:
- name: Configure git user and email
run: ./scripts/ci/configure_git.sh
# TODO: Test with scripts/ci/release_stable_docs.sh
- name: Build and deploy docs with mike as the latest stable branch
run: ./scripts/ci/release_stable_docs.sh
run: |
cd docs
OLD_STABLE_VERSION=$(mike list stable | grep -Po '([0-9]+.[0-9]+.[0-9]+)' | head -n1)
echo ${OLD_STABLE_VERSION}
mike retitle --push stable ${OLD_STABLE_VERSION}
mike deploy --push --update-aliases ${RELEASE_VERSION} stable
mike retitle --push ${RELEASE_VERSION} "${RELEASE_VERSION} (stable)"
chocolatey:
needs: [initialize]
@@ -84,6 +91,9 @@ jobs:
- name: Validate release version
run: |
echo "Release version: ${{ env.RELEASE_VERSION }}"
- name: Trigger choco
run: ./scripts/ci/release_choco.sh
run: |
curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
Executable → Regular
View File
-11
View File
@@ -1,11 +0,0 @@
#!/bin/bash
python "./scripts/windows/choco/choco_packager.py" \
"./release/bottom_x86_64-pc-windows-msvc.zip" \
${{ env.RELEASE_VERSION }} \
"./scripts/windows/choco/bottom.nuspec.template" \
"./scripts/windows/choco/chocolateyinstall.ps1.template" \
"bottom.nuspec" \
"tools/chocolateyinstall.ps1" \
"tools/"
zip -r choco.zip "bottom.nuspec" "tools"
-6
View File
@@ -1,6 +0,0 @@
#!/bin/bash
curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
View File