diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a234816 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,38 @@ +environment: &environment + GAME_NAME: mranderson + GAME_LANG: lua + +steps: + - name: build + image: rastasi/tic80pro:latest + environment: + <<: *environment + XDG_RUNTIME_DIR: /tmp + commands: + - tic80 --cli --skip --fs=. --cmd="load $GAME_NAME.$GAME_LANG & save $GAME_NAME & export html $GAME_NAME.html & exit" + + - name: artifact + image: alpine + environment: + <<: *environment + DROPAREA_HOST: vps.teletype.hu + DROPAREA_PORT: 2223 + DROPAREA_TARGET_PATH: /home/drop + DROPAREA_USER: drop + DROPAREA_SSH_PASSWORD: + from_secret: droparea_ssh_password + commands: + - apk add --no-cache openssh-client sshpass + - mkdir -p /root/.ssh + - sshpass -p $DROPAREA_SSH_PASSWORD scp -o StrictHostKeyChecking=no -P $DROPAREA_PORT $GAME_NAME.$GAME_LANG $GAME_NAME.tic $GAME_NAME.html.zip $DROPAREA_USER@$DROPAREA_HOST:$DROPAREA_TARGET_PATH + + - name: update + image: alpine + environment: + <<: *environment + UPDATE_SERVER: https://games.vps.teletype.hu + UPDATE_SECRET: + from_secret: update_secret_key + commands: + - apk add --no-cache curl + - curl "$UPDATE_SERVER/update?secret=$UPDATE_SECRET&name=$GAME_NAME&platform=tic80" diff --git a/README.md b/README.md index c3a2a69..798c0e2 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ Before he was "The One," before he dodged bullets and shattered the illusion, Th He yearned for something more, a glitch in the system, a whisper of a different reality. His fingers, calloused from countless hours on the keyboard, danced across cryptic forums late at night, searching for answers, for meaning beyond the mundane syntax of his corporate prison. The coffee flowed freely, the pizza boxes piled high, and the lines of code blurred into an indistinguishable stream of ones and zeros. -This game chronicles Mr. Anderson's final, desperate struggles within the software development matrix. Navigate the labyrinthine codebase, escape the relentless pursuit of project managers (Agents), and uncover the hidden truths that will lead him to question everything he knows. Will he find the "red pill" in a sea of green code, or will he forever be just another drone in the system? \ No newline at end of file +This game chronicles Mr. Anderson's final, desperate struggles within the software development matrix. Navigate the labyrinthine codebase, escape the relentless pursuit of project managers (Agents), and uncover the hidden truths that will lead him to question everything he knows. Will he find the "red pill" in a sea of green code, or will he forever be just another drone in the system? diff --git a/game.lua b/mranderson.lua similarity index 100% rename from game.lua rename to mranderson.lua