ci: set registry on internal deps correctly
This commit is contained in:
parent
6598a23d06
commit
9afa5ff0cc
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue