.github/workflows/release.yml aktualisiert
All checks were successful
Release crate / Publish to crates.io and create GitHub Release (release) Successful in 2m13s

This commit was merged in pull request #3.
This commit is contained in:
2025-11-13 23:49:57 +01:00
parent fd53e258e9
commit c8ddd09cf7

View File

@@ -65,12 +65,12 @@ jobs:
- name: Publish to Gitea registry
run: cargo publish --registry gitea --allow-dirty
# - name: Publish to crates.io
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# run: |
# if [ -z "$CARGO_REGISTRY_TOKEN" ]; then
# echo "CARGO_REGISTRY_TOKEN is not set. Set it in repository secrets to publish to crates.io"
# exit 1
# fi
# cargo publish --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
if [ -z "$CARGO_REGISTRY_TOKEN" ]; then
echo "CARGO_REGISTRY_TOKEN is not set. Set it in repository secrets to publish to crates.io"
exit 1
fi
cargo publish --token "$CARGO_REGISTRY_TOKEN" --allow-dirty