agb/.github/scripts/publish-crate.sh

9 lines
159 B
Bash
Raw Normal View History

2022-01-13 09:46:48 +11:00
#!/usr/bin/env bash
set -e # Fail if any command fails
RELEASE_TAG=$(git tag --points-at HEAD)
PROJECT=${RELEASE_TAG/\/*/}
(cd "$PROJECT" && cargo publish)