Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344# Keeps albedo.sh/docs the same as main: checks docs/ against the tree# (test/docs_drift.py), builds the site, and deploys it to wisp.place. The# deploy needs the repository secret WISPCTL_APP_PASSWORD, an app password of# the account that holds the site; without it the run checks and builds only.# Pull requests do not run this: a deploy publishes whatever was checked out.when: - event: ['push'] branch: ['main'] - event: ['manual']
engine: microvmimage: nixos
environment: # The runner's only cache is its local proxy (127.0.0.1:10500). When it cuts a # download short ("Transferred a partial file", "Requested range was not # delivered"), Nix moves on to the next cache instead of failing the build. NIX_CONFIG: | experimental-features = nix-command flakes extra-substituters = https://cache.nixos.org extra-trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= npm_config_cache: '/workspace/.cache/npm' WISPCTL_NO_PROGRESS: '1'
cache: - key: npm-site hash: [site/package-lock.json, flake.lock] fallback: true when: always paths: [/workspace/.cache/npm]
steps: - name: check the docs against the tree command: nix develop -c python3 test/docs_drift.py - name: build the site command: | nix develop -c npm --prefix site ci --no-audit --no-fund nix develop -c npm --prefix site run docs - name: deploy to wisp.place command: | if [ "$TANGLED_REF_NAME" != main ]; then echo "not main: nothing deployed"; exit 0; fi if [ -z "${WISPCTL_APP_PASSWORD:-}" ]; then echo "no WISPCTL_APP_PASSWORD secret: nothing deployed"; exit 0; fi nix develop -c npx --yes wispctl@2.1.1 deploy okami.mom --path site --site albedo --yes --password "$WISPCTL_APP_PASSWORD"