mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 14:44:18 +00:00
ci: Fix windows deployments (#323)
Fixes an issue in the windows deployment action.
This commit is contained in:
parent
7887de2aba
commit
0bf885a8cc
3 changed files with 15 additions and 5 deletions
12
.github/workflows/deployment.yml
vendored
12
.github/workflows/deployment.yml
vendored
|
@ -21,7 +21,15 @@ jobs:
|
|||
if: env.VERSION == ''
|
||||
run: |
|
||||
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
echo "version is: ${{ env.VERSION }}"
|
||||
|
||||
# - name: Hard-coded release version for testing
|
||||
# if: env.VERSION == ''
|
||||
# run: |
|
||||
# echo "VERSION=0.5.1" >> $GITHUB_ENV
|
||||
|
||||
- name: Validate the release version from the tag
|
||||
run: |
|
||||
echo "Version is: ${{ env.VERSION }}"
|
||||
|
||||
- name: Create GitHub release
|
||||
id: release
|
||||
|
@ -195,7 +203,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
cp target/${{ matrix.triple.target }}/release/btm.exe btm.exe
|
||||
zip -r bottom_${{ matrix.triple.target }}.zip "btm.exe", "completion"
|
||||
zip -r bottom_${{ matrix.triple.target }}.zip "btm.exe" "completion"
|
||||
echo "ASSET=bottom_${{ matrix.triple.target }}.zip" >> $GITHUB_ENV
|
||||
|
||||
- name: Bundle release and completion (Linux and macOS)
|
||||
|
|
6
.github/workflows/post-deploy.yml
vendored
6
.github/workflows/post-deploy.yml
vendored
|
@ -32,8 +32,10 @@ jobs:
|
|||
|
||||
- name: Execute choco packaging script
|
||||
run: |
|
||||
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $RELEASE_VERSION "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/chocolateyinstall.ps1" "./deployment/windows/choco/tools/";
|
||||
zip -r choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
|
||||
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $RELEASE_VERSION "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/chocolateyinstall.ps1" "./deployment/windows/choco/tools/"
|
||||
cd ./deployment/windows/choco
|
||||
zip -r choco.zip "bottom.nuspec" "./tools"
|
||||
cd ../../../
|
||||
|
||||
- name: Upload choco.zip to release
|
||||
uses: svenstaro/upload-release-action@2.1.0
|
||||
|
|
|
@ -172,7 +172,7 @@ Choco package located [here](https://chocolatey.org/packages/bottom).
|
|||
choco install bottom
|
||||
|
||||
# Version number may be required for newer releases, if available:
|
||||
choco install bottom --version=0.5.1
|
||||
choco install bottom --version=0.5.0 # 0.5.1 requires 0.5.0 to be accepted first, unfortunately...
|
||||
```
|
||||
|
||||
### winget
|
||||
|
|
Loading…
Reference in a new issue