agb/.github/scripts/publish-crate.sh
2022-01-12 22:46:48 +00:00

9 lines
159 B
Bash

#!/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)