mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-08 16:04:30 +00:00
10 lines
316 B
Bash
10 lines
316 B
Bash
|
if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
|
||
|
P="csrando"
|
||
|
mkdir target
|
||
|
mkdir target/src
|
||
|
cp -r src target
|
||
|
cd target/src
|
||
|
zip -9 -r "${P}.love" .
|
||
|
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "${P}.love" --daily
|
||
|
cat daily.txt
|
||
|
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"
|