Skip to content

Fix release CI: executable gradlew on tag builds + dev_build contents:write - #8

Merged
aquariusnetwork9 merged 1 commit into
mainfrom
fix/ci-release-build
Jun 21, 2026
Merged

Fix release CI: executable gradlew on tag builds + dev_build contents:write#8
aquariusnetwork9 merged 1 commit into
mainfrom
fix/ci-release-build

Conversation

@aquariusnetwork9

Copy link
Copy Markdown
Owner

Why the release wasn't building

The Publish Release workflow (release.yml) checks out the named version tag and builds it. Every release tag up to v1.3.5 was committed with gradlew at mode 100644 (no exec bit), so the runner hit:

./gradlew: Permission denied
##[error]Process completed with exit code 126.

The exec bit was fixed on main's HEAD (100755), but existing tags are frozen at 100644, so dispatching a release for v1.3.5 still failed.

Separately, dev_build.yml's snapshot Release step was 403-ing on main because the default GITHUB_TOKEN is read-only (contents: read).

Fixes

  • release.ymlchmod +x ./gradlew before invoking it, so tag builds work regardless of the tag's frozen file mode.
  • dev_build.yml — add permissions: contents: write so the snapshot publish step can create/update the Dev Build release.

After merge, the official v1.3.5 release jar will be (re)built and attached via release.yml workflow_dispatch.

🤖 Generated with Claude Code

…ld contents:write

release.yml builds the checked-out tag, but tags up to v1.3.5 were committed
with gradlew at mode 100644 (no exec bit), so `./gradlew` failed with
"Permission denied" (exit 126). chmod it before invoking.

dev_build.yml's snapshot Release step needs contents:write; the repo's default
token is read-only, so the publish step was 403-ing on every push to main.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aquariusnetwork9
aquariusnetwork9 merged commit 189177f into main Jun 21, 2026
2 checks passed
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.

2 participants