1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-11 02:21:50 +00:00

0.2.4: test trusted publishing (#37)

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-09-30 09:58:18 -04:00 committed by GitHub
parent a330260340
commit 74c62c4703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 6 deletions

View file

@ -11,6 +11,8 @@ jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
@ -40,8 +42,11 @@ jobs:
exit 1
fi
- name: Run tests
run: cargo test --verbose
- run: cargo test --verbose
- name: Publish to crates.io
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
- id: auth
uses: rust-lang/crates-io-auth-action@v1
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}