Skip to content

Host screenshots as user attachments and keep release pages APK-only - #92

Merged
dzid26 merged 6 commits into
mainfrom
work/attachments
Oct 6, 2026
Merged

dzid26 merged 6 commits into
mainfrom
work/attachments

Conversation

@dzid26

@dzid26 dzid26 commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Follows your decisions: native attachments first, and the standard sticky-comment action.\n\n- New .github/scripts/upload-screenshot.sh: uploads a PNG via GitHub's user-attachments endpoint (the drag-and-drop one; live-tested with the repo token, it returned a real \github.com/user-attachments/assets/...\ URL) and prints the URL. If the endpoint rejects the token it falls back to an asset on a hidden \screenshots\ release, so an embed URL always exists.\n- \publish-preview-release.sh\ / \publish-tag-release.sh: embed the attachment URL in the notes and upload only the APK — release pages no longer carry screenshot assets.\n- \preview-health.yml: asserts the APK + a screenshot image in the notes (and staleness by the APK), instead of a sheet asset.\n- \pr-screenshots.yml: posts one self-updating comment with \ hollander/actions-comment-pull-request\ pinned to v3.0.1 (\24bffb9b…, the action openpilot uses) and a \comment-tag, replacing the hand-rolled comment PATCHing; the sheet comes from the helper.\n\nUntested until the first CI run: whether the Actions \GITHUB_TOKEN\ is accepted by the attachments endpoint — the release-asset fallback covers it either way. Bash syntax checked locally. Review before merge.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Screenshots

App screenshots: light and dark

Captured from the demo build at 26e49eb.

@dzid26

dzid26 commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

I still see asset on the helper release:

Screenshots
Pre-release
@github-actions github-actions released this 20 minutes ago
screenshots
7ce419e
Hosted screenshots for release notes and PR comments.

Assets
4
screenshot-sheet-26e49eb.png
sha256:ec98b34e2b6d16bdbbdd7bc04aa7ac7e5b5f688ff79cfe7b65b372425e96fab5
900 KB
6 minutes ago

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Screenshots

App screenshots: light and dark

Captured from the demo build at 2c6a539.

@dzid26

dzid26 commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator Author

Ok, but I still see screenshot-sheet-2c6a539.png asset on the helper release: https://github.com/dzid26/TeslaBatteryBLE/releases/tag/screenshots

I though we are using undocumented uplodaing api directly to sheet.

@dzid26
dzid26 marked this pull request as draft October 6, 2026 14:56
@dzid26
dzid26 marked this pull request as ready for review October 6, 2026 15:26
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Screenshots

App screenshots: light and dark

Captured from the demo build at 183bc27.

@dzid26
dzid26 merged commit 772483a into main Oct 6, 2026
5 checks passed
@dzid26
dzid26 deleted the work/attachments branch October 6, 2026 15:34
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.

1 participant