Use a non-reserved Cargo secret name for Gitea publishing
CI / check (push) Successful in 2m22s
Publish crates / build (push) Successful in 3m24s
Publish crates / publish-crates-io (push) Successful in 21s
Publish crates / publish-gitea (push) Successful in 28s

This commit is contained in:
Aleksandr Bogomiakov committed 2026-11-20 14:03:02 +00:00
1 parent 8af4d2cbbc
commit e47348b21d
3 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -62,11 +62,11 @@ jobs:
toolchain: "1.97"
- name: Publish mirror to Gitea without rebuilding
env:
GITEA_PACKAGES_TOKEN: ${{ secrets.GITEA_PACKAGES_TOKEN }}
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}
run: |
if [ -z "$GITEA_PACKAGES_TOKEN" ]; then
echo "::error::Add the GITEA_PACKAGES_TOKEN repository Actions secret, then rerun this workflow."
if [ -z "$CARGO_REGISTRIES_GITEA_TOKEN" ]; then
echo "::error::Add the CARGO_REGISTRIES_GITEA_TOKEN repository Actions secret, then rerun this workflow."
exit 1
fi
export CARGO_REGISTRIES_GITEA_TOKEN="Bearer $GITEA_PACKAGES_TOKEN"
export CARGO_REGISTRIES_GITEA_TOKEN="Bearer $CARGO_REGISTRIES_GITEA_TOKEN"
python3 scripts/publish_crates.py --registry gitea --no-verify