.github/workflows/release.yml aktualisiert
All checks were successful
Release crate / Publish to crates.io and create GitHub Release (release) Successful in 2m13s
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:
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user