Skip to content

ci: add Swarm upload workflow - #834

Merged
darkobas2 merged 4 commits into
masterfrom
ci/swarm-upload
Aug 4, 2026
Merged

ci: add Swarm upload workflow#834
darkobas2 merged 4 commits into
masterfrom
ci/swarm-upload

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

Publishes the built docs to Swarm on every push to master, and updates the swarm-docs feed. Mirrors the setup already used by ethswarm-nextjs and ethswarm-blog-hugo.

Notes on the adaptation:

  • Self-hosted runner — the upload targets an internal bee node that GitHub-hosted runners cannot reach.
  • dir: ./build — Docusaurus output, rather than nextjs ./out.
  • topic: "swarm-docs" — feed topics must be unique per signer; swarm-homepage and swarm-blog are already taken.
  • package-manager-cache: falsesetup-node >= 6.5.0 probes npm --version to auto-detect the package manager, and that probe hangs indefinitely on these runners. package.json declares no packageManager/devEngines field, so no dependency caching is lost.
  • Node 24 (repo requires >= 20; 24.15.0 is already in the runner tool cache).

The four PRIVATE_* org secrets have been granted to this repo.

🤖 Generated with Claude Code

Publishes the built docs to Swarm on every push to master and updates the
"swarm-docs" feed, mirroring the setup already used by ethswarm-nextjs and
ethswarm-blog-hugo.

Runs on the self-hosted runner because the upload targets an internal bee
node that GitHub-hosted runners cannot reach. Output dir is ./build
(Docusaurus) and package-manager-cache is disabled because setup-node
>=6.5.0 probes 'npm --version', which hangs on those runners.
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for test-twitter-preview-testing-3 ready!

Name Link
🔨 Latest commit b8dce6e
🔍 Latest deploy log https://app.netlify.com/projects/test-twitter-preview-testing-3/deploys/6a71a1dca0eaa50008f55d4f
😎 Deploy Preview https://deploy-preview-834--test-twitter-preview-testing-3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The bee endpoint is publicly reachable and gated by PRIVATE_API_TOKEN, so a
self-hosted runner is not required. Verified via devcon-swarm-exporter, which
uploads from ubuntu-latest and reaches the endpoint (its failures are HTTP 403
from a missing token, not a connectivity error).

Avoids granting a public repository access to the private runner group.
ethersphere/awesome-swarm no longer has a master branch, so the prebuild
fetch returned 404 and failed every build - including the gh-pages deploy,
not just PR checks.

Points SOURCE_URL, REPO_HTTP_BASE and RAW_HTTP_BASE at main.
The upstream README embeds a raw <img> inside an <a>. MDX requires void
elements to be self-closed, so the build failed with end-tag-mismatch.

Also rewrites relative paths in raw HTML src/href attributes - the existing
rewriting only covered markdown link syntax, so the embedded logo would have
404'd on the rendered page.
@darkobas2
darkobas2 merged commit c8d2819 into master Aug 4, 2026
9 checks passed
@darkobas2
darkobas2 deleted the ci/swarm-upload branch August 4, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant