mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 13:30:44 +00:00
ci: revert a few script changes in release CI (#1916)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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"
|
||||
@@ -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"'" } }'
|
||||
Executable → Regular
Reference in New Issue
Block a user