| … | … | @@ -0,0 +1,36 @@ |
| 1 | name: Deploy landing site to GitHub Pages | |
| 2 | ||
| 3 | # Publishes landing/ (the static site for p2pbuilders.org) on every push to | |
| 4 | # main that touches it. One-time setup in the repo: Settings → Pages → | |
| 5 | # Source: "GitHub Actions", then set the custom domain to p2pbuilders.org | |
| 6 | # and point DNS at GitHub Pages. | |
| 7 | ||
| 8 | on: | |
| 9 | push: | |
| 10 | branches: [main] | |
| 11 | paths: ['landing/**', '.github/workflows/deploy-landing.yml'] | |
| 12 | workflow_dispatch: | |
| 13 | ||
| 14 | permissions: | |
| 15 | contents: read | |
| 16 | pages: write | |
| 17 | id-token: write | |
| 18 | ||
| 19 | concurrency: | |
| 20 | group: pages | |
| 21 | cancel-in-progress: true | |
| 22 | ||
| 23 | jobs: | |
| 24 | deploy: | |
| 25 | runs-on: ubuntu-latest | |
| 26 | environment: | |
| 27 | name: github-pages | |
| 28 | url: ${{ steps.deployment.outputs.page_url }} | |
| 29 | steps: | |
| 30 | - uses: actions/checkout@v4 | |
| 31 | - uses: actions/configure-pages@v5 | |
| 32 | - uses: actions/upload-pages-artifact@v3 | |
| 33 | with: | |
| 34 | path: landing | |
| 35 | - id: deployment | |
| 36 | uses: actions/deploy-pages@v4 |
| … | … | @@ -6,6 +6,7 @@ node_modules/ |
| 6 | 6 | .hiverelay-publish/ |
| 7 | 7 | .hiverelay-seed/ |
| 8 | 8 | .hiverelay-probe/ |
| 9 | .hiverelay-local/ | |
| 9 | 10 | .p2pbuilders.key |
| 10 | 11 | primary.key |
| 11 | 12 |
| … | … | @@ -3,7 +3,7 @@ |
| 3 | 3 | // the drive from a fresh store and actually READ a file — which forces fetching |
| 4 | 4 | // the content/blobs core from whatever peer serves it. If a relay serves the |
| 5 | 5 | // file with all my hosts down, the drive is genuinely durable. Exit 0 = durable. |
| 6 | import { HiveRelayClient } from '/Users/localllm/Projects/pear-ecosystem/00-core/hiverelay/packages/client/index.js' | |
| 6 | import { HiveRelayClient } from 'p2p-hiverelay' | |
| 7 | 7 | import { fileURLToPath } from 'url' |
| 8 | 8 | import { dirname, join } from 'path' |
| 9 | 9 |
| … | … | @@ -10,7 +10,7 @@ |
| 10 | 10 | * |
| 11 | 11 | * The non-local form is OUTWARD-FACING (public network). Run deliberately. |
| 12 | 12 | */ |
| 13 | import { HiveRelayClient } from '/Users/localllm/Projects/pear-ecosystem/00-core/hiverelay/packages/client/index.js' | |
| 13 | import { HiveRelayClient } from 'p2p-hiverelay' | |
| 14 | 14 | import { readFileSync, writeFileSync } from 'fs' |
| 15 | 15 | import { fileURLToPath } from 'url' |
| 16 | 16 | import { dirname, join } from 'path' |