From f6b0d953a1ccd4c7d93f14ee4a102c5756bb2911 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Sun, 12 Apr 2026 15:41:00 -0400 Subject: Add release workflow for Trusted Publishing Build the package for both the host and target before publishing. --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..324a371 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Publish release to crates.io +on: + release: + types: [ published ] +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v6 + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - run: rustup toolchain install stable --no-self-update --profile minimal --target thumbv7em-none-eabihf + - run: cargo publish --package=imxrt-rt --target=thumbv7em-none-eabihf --target=x86_64-unknown-linux-gnu + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} -- cgit v1.2.3