From 5491ed6a3c7aabd9111fddc4e7b554aa6975070a Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Wed, 7 Oct 2026 16:12:33 -0700 Subject: [PATCH] Add a Tangled pipeline that tests and deploys to Fly on push to main. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01Azu6Ss4qdyuB3uVnxVswyc --- .tangled/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .tangled/workflows/deploy.yml diff --git a/.tangled/workflows/deploy.yml b/.tangled/workflows/deploy.yml new file mode 100644 index 0000000..6ea00d7 --- /dev/null +++ b/.tangled/workflows/deploy.yml @@ -0,0 +1,25 @@ +# Test and deploy the site image to Fly on every push to main. +# FLY_API_TOKEN is a repository secret (a deploy token scoped to the +# cameron-stream app). ATProto About/Knowledge reconciliation is not done here; +# it stays on the credential-provisioned local worker. +when: + - event: ["push"] + branch: ["main"] + - event: ["manual"] + +engine: "nixery" + +dependencies: + nixpkgs: + - nodejs_22 + - flyctl + +steps: + - name: "Install" + command: "npm ci --no-audit --no-fund" + - name: "Typecheck" + command: "npm run typecheck" + - name: "Test" + command: "npm run test:markdown && npm run test:content && npm run test:charts" + - name: "Deploy" + command: "flyctl deploy --remote-only --depot=false" -- 2.51.2