Add generic publish crate script

This commit is contained in:
Gwilym Kuiper 2022-01-12 22:46:48 +00:00
parent b7d52c8ec2
commit da1fea86fe
2 changed files with 9 additions and 1 deletions

8
.github/scripts/publish-crate.sh vendored Normal file
View file

@ -0,0 +1,8 @@
#!/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)