From 6f4c52c0d40eb26081c13297154b140f75464331 Mon Sep 17 00:00:00 2001 From: Rano | Ranadeep Date: Mon, 25 Mar 2024 16:00:49 +0100 Subject: [PATCH] fix(ci/release): specify correct environment variable (#1140) * fix release on CI * add comments --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 44c057990..c2eb1fdb2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,8 +33,6 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Publish crates (dry run) run: make check-release - env: - CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} publish: if: github.ref_type == 'tag' @@ -50,7 +48,9 @@ jobs: - name: Publish crates run: yes | make release env: - CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} + # https://doc.rust-lang.org/cargo/commands/cargo-publish.html#options + # argument for `--token` is specified with this environment variable + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} gh-release: if: github.ref_type == 'tag'