Skip to content

release workflow: fix mathjax.tar path, add manual retry trigger - #78

Merged
jmnote merged 1 commit into
mainfrom
fix-release-tarball-path
Sep 6, 2026
Merged

release workflow: fix mathjax.tar path, add manual retry trigger#78
jmnote merged 1 commit into
mainfrom
fix-release-tarball-path

Conversation

@jmnote

@jmnote jmnote commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

The v1.0.1 release run (triggered by #77) failed at the "Create GitHub release" step: https://github.com/jmnote/SimpleMathJax/actions/runs/34053829578

tar: mathjax.tar: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors
##[error]Process completed with exit code 2.

git archive ... -o ../mathjax.tar ran from inside a ( cd resources/MathJax && ... ) subshell, so ../mathjax.tar resolved to resources/mathjax.tar, not the repo root where the following tar -Af base.tar mathjax.tar looked for it. Fixed by writing both archives to an absolute path captured before the cd.

Since extension.json's version (1.0.1) didn't change again after that failed run, the push-triggered "version changed" check would skip re-running the release step even after this fix merges. Added a workflow_dispatch trigger so the release can be retried by hand — github.event.before is empty on a manual run, so the version-changed check always treats it as changed, and the existing gh release view guard still skips it if that tag's release already exists.

Testing

  • Reproduced the fix against a detached worktree of main: SimpleMathJax-1.0.1-with-mathjax.tar.gz (6.2M) now builds successfully and contains resources/MathJax/tex-chtml.js and extension.json at the expected paths.
  • Validated the workflow YAML parses.

Follow-up

After this merges, the v1.0.1 release needs to be triggered manually (gh workflow run release.yml or the Actions tab's "Run workflow" button), since the version didn't change again in this PR.

🤖 Generated with Claude Code

git archive -o ../mathjax.tar was run from inside resources/MathJax,
so it wrote to resources/mathjax.tar instead of the repo root, and the
following `tar -Af base.tar mathjax.tar` couldn't find it. This broke
the "Create GitHub release" step in the run triggered by 1.0.1
(https://github.com/jmnote/SimpleMathJax/actions/runs/34053829578),
exit code 2, no release created. Write both archives to an absolute
path captured before the `cd` instead.

Also add a workflow_dispatch trigger, so a release can be retried by
hand after a workflow bug like this one without a throwaway version
bump; the existing "gh release view" check still skips it if the
tag's release already exists.

Verified by running the same steps against a detached worktree of
main: the resulting SimpleMathJax-1.0.1-with-mathjax.tar.gz (6.2M)
contains resources/MathJax/tex-chtml.js and extension.json at the
expected paths.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@jmnote
jmnote merged commit 165f2a0 into main Sep 6, 2026
2 checks passed
@jmnote
jmnote deleted the fix-release-tarball-path branch September 6, 2026 19:12
@jmnote jmnote mentioned this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant