From b43377e687204e71e5029d9e910bd383778cb81e Mon Sep 17 00:00:00 2001 From: Karolis Stasaitis Date: Wed, 17 Jul 2024 00:15:36 +0200 Subject: [PATCH] github action updates (#85) --- .github/workflows/push.yml | 23 ++++++++++++----------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 6eb8369..a6f1964 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,9 +14,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cargo cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -28,9 +28,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cargo cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -60,9 +60,9 @@ jobs: TARGET: ${{ matrix.TARGET }} OS: ${{ matrix.OS }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Cargo cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cargo/registry @@ -96,9 +96,9 @@ jobs: mv ./target/$TARGET/release/$EXEC ./$EXEC tar -czf ./artifacts/$NAME-$TARGET-$TAG.tar.gz $EXEC - name: Archive artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: result + name: result-${{ matrix.TARGET }} path: | ./artifacts @@ -110,12 +110,13 @@ jobs: contents: write steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: result + pattern: result-* + merge-multiple: true path: ./artifacts - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: draft: true generate_release_notes: true diff --git a/Cargo.lock b/Cargo.lock index a1acf8e..217d510 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -327,7 +327,7 @@ dependencies = [ [[package]] name = "sinowealth-kb-tool" -version = "0.1.0" +version = "0.1.1" dependencies = [ "clap", "clap-num", diff --git a/Cargo.toml b/Cargo.toml index 47b094a..701041b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = """ A utility for reading and writing flash contents on Sinowealth 8051-based HID devices through the commonly found ISP bootloader """ repository = "https://github.com/carlossless/sinowealth-kb-tool" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "MIT" rust-version = "1.65"