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 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]