Skip to content

Commit dbf0a9a

Browse files
committed
Try to fix configuring crates.io tokens
1 parent 10de0dd commit dbf0a9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly
2020
echo "##[add-path]$HOME/.cargo/bin"
2121
- run: cargo build
22-
- run: echo "[registry]\ntoken =\"${{ secrets.CRATESIO_TOKEN }}\"" >> $HOME/.cargo/credentials
23-
name: Configure crates.io token
22+
- name: Configure crates.io token
23+
run: |
24+
echo "[registry]" >> $HOME/.cargo/credentials
25+
echo "token = \"${{ secrets.CRATESIO_TOKEN }}\"" >> $HOME/.cargo/credentials
2426
- run: cargo run
2527
if: github.event_name != 'pull_request'
2628

0 commit comments

Comments
 (0)