ci: add Swarm upload workflow - #834
Merged
Merged
Conversation
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.
✅ Deploy Preview for test-twitter-preview-testing-3 ready!
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publishes the built docs to Swarm on every push to
master, and updates theswarm-docsfeed. Mirrors the setup already used byethswarm-nextjsandethswarm-blog-hugo.Notes on the adaptation:
dir: ./build— Docusaurus output, rather than nextjs./out.topic: "swarm-docs"— feed topics must be unique per signer;swarm-homepageandswarm-blogare already taken.package-manager-cache: false—setup-node>= 6.5.0 probesnpm --versionto auto-detect the package manager, and that probe hangs indefinitely on these runners.package.jsondeclares nopackageManager/devEnginesfield, so no dependency caching is lost.The four
PRIVATE_*org secrets have been granted to this repo.🤖 Generated with Claude Code