Skip to content

fix(ci): remove redundant build/ artifacts and publish profile/ directly#443

Merged
ss-o merged 6 commits into
mainfrom
copilot/fix-failing-github-actions-job-deploying
Jun 12, 2026
Merged

fix(ci): remove redundant build/ artifacts and publish profile/ directly#443
ss-o merged 6 commits into
mainfrom
copilot/fix-failing-github-actions-job-deploying

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Removes the committed build/ directory that duplicated profile/, simplifies the Cloudflare Pages deploy workflow to publish profile/ directly, and adds build/ to .gitignore to prevent it being accidentally re-added.

Changes

  • Removed build/: Deleted the committed build/ tree (README, assets, images) that was an exact duplicate of profile/.
  • Simplified workflow: Removed the intermediate "Prepare deploy directory" copy step (rm -rf ./build && cp -R profile/. build/) from .github/workflows/pages-deployment.yml; the publish step now targets directory: "profile" directly.
  • .gitignore: Added build/ to prevent the directory from being committed again.

profile/ is now the single source of truth for Cloudflare Pages deployments.

Touches

  • .github/workflows/pages-deployment.yml
  • .gitignore

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job deploying Fix Cloudflare Pages deploy workflow to avoid lockfile-dependent setup Jun 12, 2026
Copilot finished work on behalf of ss-o June 12, 2026 09:16
Copilot AI requested a review from ss-o June 12, 2026 09:16
@ss-o ss-o marked this pull request as ready for review June 12, 2026 09:19
@ss-o ss-o requested a review from a team as a code owner June 12, 2026 09:19
Copilot AI review requested due to automatic review settings June 12, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Cloudflare Pages deployment workflow to avoid a failing pnpm/Node setup path, and introduces a committed build/ directory that mirrors the existing profile/ content.

Changes:

  • Removed pnpm + Node setup and the pnpm install/build step from the Pages deploy job.
  • Added a deploy-prep step that rebuilds build/ by copying from profile/.
  • Added a committed build/ tree (README/assets/img) that appears to duplicate profile/.

Reviewed changes

Copilot reviewed 5 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/pages-deployment.yml Removes pnpm/Node build steps and stages deployment by copying profile/ into build/ before publishing.
build/README.md Adds a README that duplicates profile/README.md.
build/assets/.gitignore Adds build-scoped ignore rules (duplicative of profile assets in practice).
build/assets/.gitattributes Adds build-scoped attributes file.
build/assets/.editorconfig Adds build-scoped editor configuration.
build/img/logo.svg Adds an SVG asset under build/img.
build/img/hero.svg Adds an SVG asset under build/img.
build/img/divider.svg Adds an SVG asset under build/img.
build/img/card-turbo.svg Adds an SVG asset under build/img.
build/img/card-plugin-mgr.svg Adds an SVG asset under build/img.
build/img/card-ecosystem.svg Adds an SVG asset under build/img.
build/img/card-community.svg Adds an SVG asset under build/img.
Comments suppressed due to low confidence (1)

.github/workflows/pages-deployment.yml:38

  • The workflow rebuilds build/ from profile/, but this PR also adds a committed build/ tree. Keeping both encourages drift and makes the runner-side rm -rf ./build && cp -R profile/. build/ unnecessary. Publishing profile/ directly avoids the extra copy step and makes it clear which directory is the source of truth.
      - name: Prepare deploy directory
        run: |
          rm -rf ./build
          mkdir -p build
          cp -R profile/. build/
      - name: "🚀 Publish"
        uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1.5.0
        with:
          projectName: "zsh"
          directory: "build"

Comment thread .github/workflows/pages-deployment.yml Outdated
Comment thread build/README.md Outdated
- Remove committed build/ directory that duplicated profile/
- Simplify deploy workflow to publish profile/ directly
- Add build/ to .gitignore to prevent accidental commits
Copilot AI changed the title Fix Cloudflare Pages deploy workflow to avoid lockfile-dependent setup fix(ci): remove redundant build/ artifacts and publish profile/ directly Jun 12, 2026
Copilot finished work on behalf of ss-o June 12, 2026 09:43
Copilot AI requested a review from ss-o June 12, 2026 09:43
@ss-o ss-o merged commit 6ffb0d6 into main Jun 12, 2026
3 checks passed
@ss-o ss-o deleted the copilot/fix-failing-github-actions-job-deploying branch June 12, 2026 10:41
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.

3 participants