From 22361f9198f0141c49f84ea4619132a25a0d5395 Mon Sep 17 00:00:00 2001 From: Vincent Taverna Date: Wed, 10 Jun 2026 07:46:04 +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 the committed npicomx.js / npicomx.p8 and calls wrangler directly — no python3 or pico8 needed. Also removes pnpm from nixery deps (no package.json in this repo). --- .tangled/workflows/deploy.yml | 3 +-- Makefile | 12 ++++++++++++ 2 files changed, 13 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 08105f5..eac3015 100644 --- a/Makefile +++ b/Makefile @@ -86,6 +86,18 @@ dist: web ## 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 npicomx --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 npicomx.js og.png $(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 npicomx --commit-dirty=true + # --- help / housekeeping ----------------------------------------------------- .PHONY: help help: ## Show this help -- 2.51.2