Repository navigation
build: stop committing dist/, deploy it to Pages from CI - #59
Merged
Merged
Conversation
…m CI Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Pages currently runs in legacy mode (Deploy from branch
master/). Oncedist/is no longer in git, legacy Pages would serve master without it and break the public embed URLhttps://piotrl.github.io/github-profile-card/dist/gh-profile-card.min.js.Safe order:
github-pagesenvironment is created on first deploy; if it restricts branches, allowmaster).Pagesworkflow runs on push tomasterand deploys./demo/, and the README homepage (dinky theme) all load.If you merge first, switch the source immediately after and run the
Pagesworkflow via Run workflow (workflow_dispatch); the embed is broken until the first deploy completes.Changes
dist/untracked + gitignored..github/workflows/pages.yml:npm ci→npm run build→jekyll-build-pages(same_config.yml, theme and README homepage) → asserts_site/dist/gh-profile-card.min.js,_site/demo/,_site/index.html(copies dist in if Jekyll skipped it) →upload-pages-artifact→deploy-pages. Permissions:contents: read,pages: write,id-token: write;concurrency: pages. Action majors checked against latest releases: checkout v7, setup-node v7, configure-pages v6, jekyll-build-pages v1, upload-pages-artifact v5, deploy-pages v5.package.json:"files": ["dist"],prepublishOnly: npm run build.copilot-instructions.md: notes dist is gitignored/CI-built.Verification
npm run build:checkpasses locally;git statusclean after build.act). First real run happens after the source switch/merge. Jekyll should copydist/since it is a non-underscore dir present in the workspace; the assertion step fails loudly otherwise.🤖 Generated with Claude Code