image: rust/alpine sources: - https://git.sr.ht/~a14m/game-of-life tasks: - build: | cd game-of-life/CLI/rust cargo build --release - test: | cd game-of-life/CLI/rust - lint: | cd game-of-life/CLI/rust cargo fmt -- --check - release: | set +x cd game-of-life/CLI/rust REF=`git describe --exact-match --tags HEAD ||:` if [[ ! `echo $REF | awk '/^rust\/v.*$/'` ]]; then echo "Skipping release step. no matching tag" exit 0 fi echo "Publishing release $REF"