when: - event: cron branch: main cron: "0 2 * * *" - event: pull_request - event: push branch: main steps: - name: deps image: node:22 commands: - npm ci - name: lint image: node:22 when: event: - pull_request - push commands: - npm run lint - name: generate-dungeon image: node:22 when: event: - cron commands: - npm start - name: upload-to-gitea-release image: curlimages/curl:latest when: event: - cron environment: GITEA_TOKEN: ${GITEA_TOKEN} commands: - pdf=$(ls *.pdf | head -n1) - tag=$(date +%F) - | curl -X POST \ -H "Authorization: token $GITEA_TOKEN" \ -F "attachment=@$pdf" \ "https://git.keligrubb.com/api/v1/repos/keligrubb/scrollsmith/releases/$tag/assets"