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:
parent
a330260340
commit
74c62c4703
4 changed files with 58 additions and 6 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue