Skip to content

ci: try to fix release again#352

Merged
henryiii merged 3 commits into
mainfrom
henryiii/ci/release
Apr 3, 2026
Merged

ci: try to fix release again#352
henryiii merged 3 commits into
mainfrom
henryiii/ci/release

Conversation

@henryiii

@henryiii henryiii commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

Fixing again.

Signed-off-by: Henry Schreiner <[email protected]>

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

Adjusts GitHub Actions CI/CD checkout and release publishing behavior, likely to address release asset upload failures.

Changes:

  • Removed fetch-depth: 0 from actions/checkout steps in CI and CD workflows (default shallow checkout).
  • Changed the webapp artifact upload/download to use the out/ directory rather than repo-review-app.zip.
  • Added a checkout step in the release publish job and updated attestation + release upload paths.

Reviewed changes

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

File Description
.github/workflows/ci.yml Removes full-history checkout across CI jobs.
.github/workflows/cd.yml Changes webapp artifact shape to out/ and updates attestation + gh release upload logic accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/cd.yml Outdated
Comment on lines +47 to +59
with:
name: repo-review-app
path: repo-review-app.zip
path: out/

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

Prepare release asset still creates repo-review-app.zip, but the workflow no longer uploads that zip as the artifact (it now uploads out/). This makes the zip generation dead work and also changes what will later be published; either upload/attest the zip (and keep this step), or remove the zip creation and consistently treat the release asset as individual files.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/cd.yml
Comment on lines 81 to 88
- name: Attest
uses: actions/attest@v4
with:
subject-path: "${{ github.workspace }}/repo-review-app.zip"
subject-path: "${{ github.workspace }}/out/*"

- name: Upload webapp asset to release
run: gh release upload "$GITHUB_REF_NAME" repo-review-app.zip
run: gh release upload "$GITHUB_REF_NAME" out/
env:

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

gh release upload expects file path(s), but this passes the out/ directory. This will fail (directories can't be uploaded as release assets) and also doesn't match the artifact contents. Use a file glob like out/* (or reintroduce uploading repo-review-app.zip) and ensure the attestation subject-path matches the exact files being uploaded.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/cd.yml
Comment on lines 76 to 85
- uses: actions/download-artifact@v8
with:
name: repo-review-app
path: .
path: out/

- name: Attest
uses: actions/attest@v4
with:
subject-path: "${{ github.workspace }}/repo-review-app.zip"
subject-path: "${{ github.workspace }}/out/*"

Copilot AI Apr 3, 2026

Copy link

Choose a reason for hiding this comment

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

The artifact is uploaded from path: out/, which stores files under an out/ prefix inside the artifact. Downloading that artifact to path: out/ will typically recreate the same prefix (ending up with out/out/...), which would break later references to ${{ github.workspace }}/out/* and the upload step. Consider either downloading to the workspace root (path: .) or uploading out/* so the downloaded layout matches the expected out/* paths.

Copilot uses AI. Check for mistakes.
@henryiii

henryiii commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot address the review.

Copilot AI commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@copilot address the review.

Addressed all three review issues in ef69b80:

  1. Dead zip work: Changed artifact upload path from out/ to repo-review-app.zip — the zip is now actually used.
  2. Directory upload fails: gh release upload now references repo-review-app.zip (a file) instead of out/ (a directory).
  3. out/out/ nesting: Download artifact to . (workspace root) instead of path: out/, so the zip lands directly at repo-review-app.zip in the workspace.

@henryiii

henryiii commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot, rebase, #353 is in so webapp is now repo-review-app.

Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: henryiii <[email protected]>

Copilot AI commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

@copilot, rebase, #353 is in so webapp is now repo-review-app.

Rebased onto main in 728baa0 — the branch now includes the rename from #353 (repo-review-app.min.js) and all previous zip-handling fixes apply cleanly on top.

@henryiii henryiii merged commit 45b583e into main Apr 3, 2026
6 checks passed
@henryiii henryiii deleted the henryiii/ci/release branch April 3, 2026 16:01
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