This commit is contained in:
parent
a6993465af
commit
17eb29020d
@ -34,11 +34,22 @@ jobs:
|
|||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
- name: Configure cargo creds
|
- name: Configure cargo creds
|
||||||
run: echo ${{ secrets.API_TOKEN_CONFIG }} >> ~/.cargo/credentials.toml
|
run: |
|
||||||
|
echo '[registries.gitea]'' > ~/.cargo/credentials.toml
|
||||||
|
echo 'token = "Bearer ${{ secrets.CARGO_API_TOKEN}}"' >> ~/.cargo/credentials.toml
|
||||||
|
|
||||||
|
|
||||||
- name: Configure cargo
|
- name: Configure cargo
|
||||||
run: echo ${{ secrets.CARGO_CONFIG }} >> ~/.cargo/config.toml
|
run: |
|
||||||
|
echo '> ~/.cargo/credentials.toml' > ~/.cargo/config.toml
|
||||||
|
echo 'default = "gitea"' >> ~/.cargo/config.toml
|
||||||
|
echo ' ' >> ~/.cargo/config.toml
|
||||||
|
echo '[registries.gitea] ' >> ~/.cargo/config.toml
|
||||||
|
echo 'index = "https://gitea.squi.fr/Rust/_cargo-index.git"' >> ~/.cargo/config.toml
|
||||||
|
echo ' ' >> ~/.cargo/config.toml
|
||||||
|
echo '[net]' >> ~/.cargo/config.toml
|
||||||
|
echo 'git-fetch-with-cli = true' git-fetch-with-cli = true
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: cargo publish
|
run: cargo publish
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user