From 80074fbe23a409f8d1cec059b35c50193b591e79 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Sun, 22 Sep 2024 18:24:38 +0800 Subject: [PATCH] bump version to v1.5.1 --- .github/workflows/release.yaml | 19 +++++++------------ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2c2176f..a855745 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -93,24 +93,20 @@ jobs: sh -c "cd $_BINDIR; ln -sf $_BIN tomorrow" zip -r --symlinks ${{ env.BIN_NAME }}-${{ matrix.platform.target }}.zip $_BINDIR/* + - name: archive the exe + if: contains(matrix.platform.target, 'windows') + run: | + Compress-Archive -Path target/${{ matrix.platform.target }}/release-with-symbols/${{ env.BIN_NAME }}.exe -Destination ${{ env.BIN_NAME }}-${{ matrix.platform.target }}.zip + - name: Store artifact as zip - if: ${{ ! contains(matrix.platform.target, 'windows') }} uses: actions/upload-artifact@v4 with: # Finally, we store the binary as GitHub artifact for later usage - name: ${{ env.BIN_NAME }}-${{ matrix.platform.target }}.zip + name: ${{ env.BIN_NAME }}-${{ matrix.platform.target }} path: ${{ env.BIN_NAME }}-${{ matrix.platform.target }}.zip retention-days: 1 compression-level: 9 - - name: Store artifact exe - if: contains(matrix.platform.target, 'windows') - uses: actions/upload-artifact@v4 - with: - retention-days: 1 - name: ${{ env.BIN_NAME }}-${{ matrix.platform.target }} - path: target/${{ matrix.platform.target }}/release-with-symbols/${{ env.BIN_NAME }}.exe - release: name: Release needs: [ build ] @@ -129,14 +125,13 @@ jobs: merge-multiple: true - name: list artifacts - run: ls todor*.zip *.exe + run: ls todor*.zip - name: Release uses: softprops/action-gh-release@v2 with: files: | todor*.zip - todor*.exe make_latest: true generate_release_notes: true token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index c3e548f..1b0f851 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "todor" -version = "1.5.0" +version = "1.5.1" edition = "2021" authors = ["JF Ding "] description = "yet another cli TODO in Rust"