summaryrefslogtreecommitdiffstats
path: root/.builds/rust.yml
diff options
context:
space:
mode:
Diffstat (limited to '.builds/rust.yml')
-rw-r--r--.builds/rust.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.builds/rust.yml b/.builds/rust.yml
index d7cceb7..1425e48 100644
--- a/.builds/rust.yml
+++ b/.builds/rust.yml
@@ -7,6 +7,10 @@ packages:
sources:
- https://git.sr.ht/~a14m/game-of-life
+secrets:
+ # RUST CRATES.IO CREDENTIALS
+ - 3e602cae-1563-4a6a-ab2a-c782c68bd599
+
tasks:
- install: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
@@ -25,12 +29,13 @@ tasks:
- 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"
+ cd game-of-life/CLI/rust
source $HOME/.cargo/env
cargo build --release
+ cargo publish