image: alpine/latest oauth: git.sr.ht/OBJECTS:RW packages: - hut - chicken triggers: - action: email condition: failure to: dieggsy@pm.me tasks: - build: | export CHICKEN_INSTALL_PREFIX=$HOME/.chicken export CHICKEN_INSTALL_REPOSITORY=$HOME/.chicken/lib/chicken export CHICKEN_REPOSITORY_PATH=$HOME/.chicken/lib/chicken:$(csi -R chicken.platform -p '(car (repository-path))') cd pebble chicken-install inotify spiffy chicken-install -D pebble-static - upload: | cd pebble if [ -n "$(git tag --points-at HEAD)" ]; then fullname=pebble-"$(git tag --points-at HEAD)"-"$(cc -dumpmachine)" mv pebble $fullname hut git artifact upload $fullname else echo "Nothing to build (not a tag)" fi