From 3fa85fcb07bc440b566a1b16c6893f47eca72416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lohrer?= Date: Tue, 28 Apr 2026 08:37:59 +0200 Subject: [PATCH] ci: snapshot-step nach publish + output als artifact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Etappe 3 des prerender-snapshot-plans (variante 1: minimal — kein neuer workflow, deploy bleibt manuell via scripts/deploy-svelte.sh): - 'Snapshot'-step laeuft nach publish, ruft deno-snapshot-cli auf - output (index.json + posts/*.json + .last-snapshot.json) wird als github-actions-artifact fuer 30 tage aufgehoben — debug-pfad falls ein deploy-bug nachvollzogen werden muss - AUTHOR_PUBKEY_HEX + BOOTSTRAP_RELAY werden aus existierenden secrets uebernommen, keine neuen secrets noetig Reihenfolge "publish dann snapshot": neue events muessen erst auf den relays sein, bevor sie gesnapshottet werden koennen. Bei publish-fail laeuft snapshot nicht — gewollt, weil unklarer relay-stand zu fehlerhaftem snapshot-output fuehren wuerde. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 839155e..bb6d18b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,3 +55,18 @@ jobs: name: publish-log path: ./publish/logs/publish-*.json retention-days: 30 + + - name: Snapshot + working-directory: ./snapshot + env: + AUTHOR_PUBKEY_HEX: ${{ secrets.AUTHOR_PUBKEY_HEX }} + BOOTSTRAP_RELAY: ${{ secrets.BOOTSTRAP_RELAY }} + run: | + deno run --allow-env --allow-read --allow-write --allow-net src/cli.ts + + - uses: actions/upload-artifact@v4 + if: always() + with: + name: snapshot-output + path: ./snapshot/output/ + retention-days: 30