Skip to content

Commit 4e625dd

Browse files
committed
Test trusted publishing workflow
The maintainer is responsible for tagging and cutting a release that's passed other CI checks. To publish the package, create a release on a 'v*' tag. Intentionally including --dry-run while I test things out.
1 parent bc74f39 commit 4e625dd

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish release to crates.io
2+
on:
3+
release:
4+
types: [ published ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
environment: release
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: rust-lang/crates-io-auth-action@v1
14+
id: auth
15+
- run: rustup toolchain install stable --no-self-update --profile minimal
16+
- run: cargo package --package=imxrt-dma
17+
- run: cargo publish --package=imxrt-dma --dry-run
18+
env:
19+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)