ci: set registry on internal deps correctly

This commit is contained in:
ThetaDev 2024-03-23 00:40:54 +01:00
parent 6598a23d06
commit 9afa5ff0cc
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -23,11 +23,13 @@ jobs:
echo END_OF_FILE
} >> "$GITHUB_ENV"
- name: 📤 Publish crate
- name: 📤 Publish crate on code.thetadev.de
run: |
mkdir -p ~/.cargo
printf '[registries.thetadev]\nindex = "https://code.thetadev.de/ThetaDev/_cargo-index.git"\ntoken = "Bearer ${{ secrets.TOKEN_GITEA }}"\n' >> ~/.cargo/config.toml
sed -i "s/^rustypipe.*=\s*{/\0 registry = \"thetadev\",/g" Cargo.toml
cargo publish --registry thetadev --package "${{ env.CRATE }}"
git restore Cargo.toml
- name: 🎉 Publish release
uses: https://gitea.com/actions/release-action@main