Skip to content

Commit

Permalink
fix(ci/release): specify correct environment variable (#1140)
Browse files Browse the repository at this point in the history
* fix release on CI

* add comments
  • Loading branch information
rnbguy authored Mar 25, 2024
1 parent 49e907a commit 6f4c52c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 6f4c52c

Please sign in to comment.