summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-11-22 09:40:29 -0800
committerGitHub <noreply@github.com>2020-11-22 12:40:29 -0500
commit0bf885a8ccaf7673c4f596a4194682e22ff842c5 (patch)
tree5239e86853634aa230080d6c8505c01a83066da9
parent7887de2aba22c4478c796e1db6272fb4e3770df6 (diff)
ci: Fix windows deployments (#323)
Fixes an issue in the windows deployment action.
-rw-r--r--.github/workflows/deployment.yml12
-rw-r--r--.github/workflows/post-deploy.yml6
-rw-r--r--README.md2
3 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml
index c7ca8180..04733a53 100644
--- a/.github/workflows/deployment.yml
+++ b/.github/workflows/deployment.yml
@@ -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)
diff --git a/.github/workflows/post-deploy.yml b/.github/workflows/post-deploy.yml
index b4dbd847..7b208814 100644
--- a/.github/workflows/post-deploy.yml
+++ b/.github/workflows/post-deploy.yml
@@ -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
diff --git a/README.md b/README.md
index 3721d1e2..a6b3d58b 100644
--- a/README.md
+++ b/README.md
@@ -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