From a3d1f37270e4fa3fb2447691a60ac4dc5370be31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E7=9D=BF?= Date: Thu, 29 Jan 2026 11:07:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=89=80=E6=9C=89?= =?UTF-8?q?=20Cargo.toml=20=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fitimage/Cargo.toml | 4 +--- jkconfig/Cargo.toml | 4 +--- ostool/Cargo.toml | 3 +-- uboot-shell/Cargo.toml | 4 +--- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/fitimage/Cargo.toml b/fitimage/Cargo.toml index 2ffbb96..3371dd8 100644 --- a/fitimage/Cargo.toml +++ b/fitimage/Cargo.toml @@ -4,12 +4,10 @@ version = "0.1.1" edition = "2021" authors = ["周睿 "] description = "A Rust library for creating U-Boot compatible FIT images" -documentation = "https://docs.rs/fitimage" license = "MIT OR Apache-2.0" -readme = "README.md" categories = ["embedded", "development-tools", "os"] keywords = ["u-boot", "boot", "fit-image", "embedded"] -repository = "https://github.com/ZR233/ostool" +repository = "https://github.com/drivercraft/ostool" [dependencies] # 核心依赖 diff --git a/jkconfig/Cargo.toml b/jkconfig/Cargo.toml index 6ec7926..e85ce22 100644 --- a/jkconfig/Cargo.toml +++ b/jkconfig/Cargo.toml @@ -2,13 +2,11 @@ authors = ["周睿 "] categories = ["command-line-interface", "config"] description = "A Cursive-based TUI component library for JSON Schema configuration" -documentation = "https://docs.rs/jkconfig" edition = "2024" keywords = ["tui", "config", "json-schema", "terminal"] license = "MIT OR Apache-2.0" name = "jkconfig" -readme = "README.md" -repository = "https://github.com/ZR233/ostool" +repository = "https://github.com/drivercraft/ostool" version = "0.1.5" [[bin]] diff --git a/ostool/Cargo.toml b/ostool/Cargo.toml index 8db3d06..b324340 100644 --- a/ostool/Cargo.toml +++ b/ostool/Cargo.toml @@ -2,13 +2,12 @@ authors = ["周睿 "] categories = ["command-line-utilities", "embedded", "development-tools"] description = "A tool for operating system development" -documentation = "https://docs.rs/ostool" edition = "2024" keywords = ["os", "embedded", "qemu", "u-boot", "bootloader"] license = "MIT OR Apache-2.0" name = "ostool" readme = "../README.md" -repository = "https://github.com/ZR233/ostool" +repository = "https://github.com/drivercraft/ostool" version = "0.8.9" [package.metadata.binstall] diff --git a/uboot-shell/Cargo.toml b/uboot-shell/Cargo.toml index d7acb92..ccebfa8 100644 --- a/uboot-shell/Cargo.toml +++ b/uboot-shell/Cargo.toml @@ -2,13 +2,11 @@ authors = ["周睿 "] categories = ["os", "embedded", "development-tools"] description = "A crate for communicating with u-boot" -documentation = "https://docs.rs/uboot-shell" edition = "2024" keywords = ["u-boot", "shell", "embedded", "serial", "ymodem"] license = "MIT" name = "uboot-shell" -readme = "README.md" -repository = "https://github.com/ZR233/ostool" +repository = "https://github.com/drivercraft/ostool" version = "0.2.1" [dependencies] From 9070d5fca33cedcd0c386c67b2728c0b6f00ba3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E7=9D=BF?= Date: Thu, 29 Jan 2026 11:14:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20release.yml=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5=E4=BD=BF=E7=94=A8=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=9A=84=20checkout=20=E5=92=8C=20Rust=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E9=93=BE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 38 +++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86053a8..c58a97d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,21 @@ jobs: if: ${{ github.repository_owner == 'drivercraft' && (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success') }} runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - &checkout + name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + persist-credentials: false + - &install-rust + name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - &setup-libudenv: + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: libudev-dev + version: 1.0 - name: Release with release-plz uses: release-plz/action@v0.5 @@ -26,6 +39,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # Create a PR with the new versions and changelog, preparing the next release. + release-plz-pr: + name: Release-plz PR + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + concurrency: + group: release-plz-${{ github.ref }} + cancel-in-progress: false + steps: + - *checkout + - *install-rust + - *setup-libudenv + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} build-binaries: needs: release-plz