mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-30 22:41:44 +00:00
ci: use trusted publishing (#1981)
https://blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/ https://crates.io/docs/trusted-publishing
This commit is contained in:
parent
ae43ea796a
commit
821611f76f
5
.github/workflows/release-plz.yml
vendored
5
.github/workflows/release-plz.yml
vendored
@ -17,6 +17,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
contents: write
|
contents: write
|
||||||
|
id-token: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.repository_owner == 'ratatui' }}
|
if: ${{ github.repository_owner == 'ratatui' }}
|
||||||
steps:
|
steps:
|
||||||
@ -29,13 +30,15 @@ jobs:
|
|||||||
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master
|
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
- uses: rust-lang/crates-io-auth-action@63a7064947ceca9989005e118db3a5fecdc9259f # v1
|
||||||
|
id: auth
|
||||||
- name: Run release-plz
|
- name: Run release-plz
|
||||||
uses: release-plz/action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5
|
uses: release-plz/action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5
|
||||||
with:
|
with:
|
||||||
command: release
|
command: release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||||
|
|
||||||
# Create a PR with the new versions and changelog, preparing the next release.
|
# Create a PR with the new versions and changelog, preparing the next release.
|
||||||
release-plz-pr:
|
release-plz-pr:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user