ci: use gitea token from secrets

This commit is contained in:
ThetaDev 2024-03-22 15:15:17 +01:00
parent 926f504136
commit 379698c66c
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -20,7 +20,7 @@ jobs:
- name: 📤 Publish crate
run: |
mkdir -p ~/.cargo
printf '[registries.thetadev]\nindex = "https://code.thetadev.de/ThetaDev/_cargo-index.git"\ntoken = "Bearer ${{ secrets.GITHUB_TOKEN }}"\n' >> ~/.cargo/config.toml
printf '[registries.thetadev]\nindex = "https://code.thetadev.de/ThetaDev/_cargo-index.git"\ntoken = "Bearer ${{ secrets.TOKEN_GITEA }}"\n' >> ~/.cargo/config.toml
cargo publish --registry thetadev --package "${{ env.CRATE }}"
- name: 🎉 Publish release