diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2026-04-12 15:41:00 -0400 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2026-04-12 15:46:44 -0400 |
| commit | f6b0d953a1ccd4c7d93f14ee4a102c5756bb2911 (patch) | |
| tree | 5a688ba4efa3457583d6e0d5d26221f1cd269b4d /.github | |
| parent | a9bb416c822d20c1b94fb7b2bfab282d25e11125 (diff) | |
Add release workflow for Trusted Publishing
Build the package for both the host and target before publishing.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 18 |
1 files changed, 18 insertions, 0 deletions
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 }} |
