From a62cde6fa509f357c65baba54c72e6b1b76a01fa Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Wed, 10 Jun 2026 07:46:14 +0000 Subject: [PATCH] use ci-deploy for CI: skip pico8/python3, deploy pre-built artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make deploy rebuilds from source (shrinko8 + pico8), which can't run in a headless CI container. ci-deploy assembles from committed picosky*.js / .p8 artifacts and calls wrangler directly — no python3 or pico8 needed. Also removes pnpm from nixery deps (no pnpm install step needed for npx wrangler). --- .tangled/workflows/deploy.yml | 3 +-- Makefile | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.tangled/workflows/deploy.yml b/.tangled/workflows/deploy.yml index c72ffe7..fbdf012 100644 --- a/.tangled/workflows/deploy.yml +++ b/.tangled/workflows/deploy.yml @@ -5,10 +5,9 @@ engine: nixery dependencies: nixpkgs: - nodejs - - pnpm - gnumake steps: - name: deploy - command: make deploy + command: make ci-deploy env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} diff --git a/Makefile b/Makefile index 65b7460..8917e7e 100644 --- a/Makefile +++ b/Makefile @@ -135,6 +135,20 @@ dist: build ## Assemble web-only files into dist/ for Cloudflare Pages deploy deploy: dist ## Build + deploy to Cloudflare Pages (requires wrangler auth) npx wrangler pages deploy $(DIST) --project-name picosky --commit-dirty=true +.PHONY: ci-dist +ci-dist: ## Assemble dist/ from committed artifacts (no pico8/python3 required) + rm -rf $(DIST) + mkdir -p $(DIST) + cp index.html sw.js manifest.webmanifest crt.js og.png $(DIST)/ + cp picosky.js picosky-demo.js picosky-comms.js picosky-firehose.js picosky-shim.js $(DIST)/ + cp client-metadata.json $(DIST)/ + cp -r favicons fonts vendor $(DIST)/ + @[ -f _headers ] && cp _headers $(DIST)/ || true + +.PHONY: ci-deploy +ci-deploy: ci-dist ## Deploy committed artifacts to Cloudflare Pages (CI-safe, no pico8 needed) + npx wrangler pages deploy $(DIST) --project-name picosky --commit-dirty=true + # --- setup / housekeeping ---------------------------------------------------- .PHONY: install-pico8 install-pico8: ## Install PICO-8 from /tmp/pico8.zip (override ZIP=) -- 2.51.2