ci: set registry on internal deps correctly
This commit is contained in:
parent
bdc9066141
commit
d71ac9f05a
1 changed files with 3 additions and 1 deletions
|
|
@ -23,11 +23,13 @@ jobs:
|
||||||
echo END_OF_FILE
|
echo END_OF_FILE
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: 📤 Publish crate
|
- name: 📤 Publish crate on code.thetadev.de
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.cargo
|
mkdir -p ~/.cargo
|
||||||
printf '[registries.thetadev]\nindex = "https://code.thetadev.de/ThetaDev/_cargo-index.git"\ntoken = "Bearer ${{ secrets.TOKEN_GITEA }}"\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
|
||||||
|
sed -i "s/^rustypipe.*=\s*{/\0 registry = \"thetadev\",/g" Cargo.toml
|
||||||
cargo publish --registry thetadev --package "${{ env.CRATE }}"
|
cargo publish --registry thetadev --package "${{ env.CRATE }}"
|
||||||
|
git restore Cargo.toml
|
||||||
|
|
||||||
- name: 🎉 Publish release
|
- name: 🎉 Publish release
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
|
|
||||||
Reference in a new issue