ci(js-peer): deploy static site to GitHub Pages#346
Open
NiKrause wants to merge 2 commits into
Open
Conversation
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.
Summary
This switches the
js-peerdeployment path from the current static Storacha/IPFS workflow to GitHub Pages.It also fixes the broken project-site asset paths so the static app works correctly when served from a repository subpath like:
Fixes #342
What changed
js-peerpublish workflow with the official GitHub Pages Actions flowactions/configure-pagesactions/upload-pages-artifactactions/deploy-pagesmainto GitHub PagesbasePath/assetPrefixWhy
The current
js-peerapp is a static Next.js export, so GitHub Pages is a straightforward deployment target and fixes former Storacha/IPFS for this frontend which stopped providing services.Preview
Preview fork deployment:
Important setup note
GitHub Pages must be enabled for the repository, and the publishing source must be set to GitHub Actions.
Without that,
actions/configure-pages@v5fails with aGet Pages site failed/404 Not Founderror.Enable in GitHub UI
Go to:
SettingsPagesSource->GitHub ActionsEnable with GitHub CLI
If Pages has not been created yet: