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