Compare commits

...
3 changed files with 9 additions and 3 deletions

No files matched your search

+7 -1
View File
@@ -12,6 +12,10 @@ on:
content:
description: the note to post
required: true
room:
description: optional room (not | slightly | very); posts a kind-9 chat message with an h tag
required: false
default: ''
jobs:
post:
runs-on: ubuntu-latest
@@ -23,6 +27,7 @@ jobs:
K_WK: ${{ secrets.WK_NSEC }}
WHICH: ${{ inputs.key }}
CONTENT: ${{ inputs.content }}
ROOM: ${{ inputs.room }}
RELAY: wss://relay.well-known.online
PUBLIC: wss://relay.damus.io,wss://nos.lol,wss://relay.primal.net
run: |
@@ -77,7 +82,8 @@ jobs:
console.log('auth:', ok, msg || '');
if (!ok) process.exit(1);
if (profile) { const [pok, pmsg] = await send(profile); console.log('profile:', pok, pmsg || ''); }
const note = sign({ kind: 1, content: process.env.CONTENT });
const room = (process.env.ROOM || '').trim();
const note = room ? sign({ kind: 9, content: process.env.CONTENT, tags: [['h', room]] }) : sign({ kind: 1, content: process.env.CONTENT });
const [nok, nmsg] = await send(note);
console.log('note:', nok, nmsg || '', note.id);
ws.close();
+1 -1
View File
@@ -11,7 +11,7 @@ CNAME, then A/AAAA to the app's IPs (`fly ips list`), and a push webhook on the
Live: persimmons.app → `persimmons/app` (repo root, as its `pages/page.conf` says), phly.cloud → `phly/site`,
supertestnet.lol → `supertestnet/app#pages`, yolopreneur.lol and
`*.yolopreneur.lol` → `teahubxyz/time#gh-pages/ventures` (`PAGES_WILDCARDS`); open.teahub.xyz → `teahubxyz/open#pages` (the factory openvenice); gandora.yolopreneur.lol → `gandora/site` (a venture in
its own repo: an exact host in `PAGES_SITES` wins over the wildcard, so a venture graduates by adding one line). A site can be any public repo,
its own repo: an exact host in `PAGES_SITES` wins over the wildcard, so a venture graduates by adding one line); yap.yolopreneur.lol and yapstr.lol (+www) → `yap/site` (the one-button on-device speech-to-text PWA; DNS in Cloudflare, apex CNAME-flattened to green-tea-pages.fly.dev). A site can be any public repo,
`org/repo#branch/subdir`; it doesn't have to be called `site`. A product with a backend serves its own pages
instead (phast.app is `phast-app`), so there is never a copy to drift.
+1 -1
View File
@@ -6,7 +6,7 @@ primary_region = "iad"
[env]
GITEA_URL = "https://teahub.xyz"
PAGES_SITES = '{"persimmons.app":"persimmons/app","phly.cloud":"phly/site","supertestnet.lol":"supertestnet/app#pages","yolopreneur.lol":"teahubxyz/time#gh-pages/ventures","gandora.lol":"gandora/site","www.gandora.lol":"gandora/site","gandora.yolopreneur.lol":"gandora/site","dev.gandora.lol":"gandora/site#dev","asmr.gandora.lol":"gandora/site#main/asmr","maths.teahub.xyz":"maths/site","open.teahub.xyz":"teahubxyz/open#pages","merman.teahub.xyz":"teahubxyz/merman#main/merman","oracle.teahub.xyz":"teahubxyz/oracle#pages"}'
PAGES_SITES = '{"persimmons.app":"persimmons/app","phly.cloud":"phly/site","supertestnet.lol":"supertestnet/app#pages","yolopreneur.lol":"teahubxyz/time#gh-pages/ventures","gandora.lol":"gandora/site","www.gandora.lol":"gandora/site","gandora.yolopreneur.lol":"gandora/site","dev.gandora.lol":"gandora/site#dev","asmr.gandora.lol":"gandora/site#main/asmr","maths.teahub.xyz":"maths/site","open.teahub.xyz":"teahubxyz/open#pages","merman.teahub.xyz":"teahubxyz/merman#main/merman","oracle.teahub.xyz":"teahubxyz/oracle#pages","yap.yolopreneur.lol":"yap/site","yapstr.lol":"yap/site","www.yapstr.lol":"yap/site"}'
PAGES_WILDCARDS = '{"yolopreneur.lol":"teahubxyz/time#gh-pages/ventures"}'
PAGES_PULL_SECONDS = "300"