mirror of
https://github.com/trussed-dev/apdu-dispatch.git
synced 2026-06-20 04:16:15 -07:00
Add trusted publishing
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: Continuous delivery - crates.io
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish-apdu-app:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ startsWith(github.event.release.tag_name, 'app-') }}
|
||||
environment: crates.io
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
|
||||
id: auth
|
||||
- run: cargo publish --package apdu-app
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||
publish-apdu-dispatch:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ startsWith(github.event.release.tag_name, 'dispatch-') }}
|
||||
environment: crates.io
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
|
||||
id: auth
|
||||
- run: cargo publish --package apdu-dispatch
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||
Reference in New Issue
Block a user