From eebf3f26b1184f8c8c065844738708a4937eb941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Thu, 24 Jul 2025 15:25:57 +0100 Subject: [PATCH] ci: Enable crates.io trusted publishing --- .github/workflows/release-plz.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 5eacec276b..82dbdfd862 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -13,6 +13,7 @@ jobs: release-plz: name: Release-plz runs-on: ubuntu-latest + environment: crate-release steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,8 +33,11 @@ jobs: # otherwise release-plz fails due to uncommitted changes. directory: ${{ runner.temp }}/llvm + - uses: rust-lang/crates-io-auth-action@v1 + id: auth + - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 env: GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }} - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}