Update .gitea/workflows/build.yml
Some checks failed
Rust-build / build (push) Failing after 1m2s

This commit is contained in:
justine 2023-07-17 16:53:11 +02:00
parent a6993465af
commit 17eb29020d

View File

@ -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