Skip to content

ci: add manual release workflow#152

Merged
mohamede1945 merged 2 commits intomainfrom
afifi/test-release-workflow2
May 3, 2026
Merged

ci: add manual release workflow#152
mohamede1945 merged 2 commits intomainfrom
afifi/test-release-workflow2

Conversation

@mohamede1945
Copy link
Copy Markdown
Collaborator

@mohamede1945 mohamede1945 commented May 3, 2026

  • Replace tag-triggered release with manual release inputs
  • Bump gradle.properties and tag the release in workflow
  • Reuse the same run to build and publish release artifacts

Testing:

Test 1

See https://github.com/quran/mobile-sync/actions/runs/25288607335.

  • Created using command:
gh workflow run release.yml \
  --ref afifi/test-release-workflow \
  -f release_number=0.1.1-test.1 \
  -f target_branch=afifi/test-release-workflow

Test 2

See https://github.com/quran/mobile-sync/actions/runs/25293771252.

  • Created using command:
gh workflow run release.yml \
  --ref afifi/test-release-workflow3 \
  -f release_number=0.1.1-test.2 \
  -f target_branch=afifi/test-release-workflow3

- Replace tag-triggered release with manual release inputs
- Bump gradle.properties and tag the release in workflow
- Reuse the same run to build and publish release artifacts
Comment thread .github/workflows/release.yml Outdated
Comment on lines +85 to +86
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
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.

will this bot have access to write to this repo or do we need to have a token as an env variable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, there is a test run in the PR's description. It's mainly because of permissions of contents: write we have. See the example here: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token

Comment thread .github/workflows/release.yml Outdated
git commit -m "chore: bump version to ${RELEASE_NUMBER}"
git push origin "HEAD:${TARGET_BRANCH}"
git tag -a "$tag_name" -m "$tag_name"
git push origin "$tag_name"
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.

should this happen at the very end? - if anything fails after this point we'll have this commit / tag etc and we didn't release yet

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

That makes sense, I'll create the commit and tag after creating the xcframework

- Build and package release artifacts before pushing commit and tag
- Keep release metadata available through workflow outputs
@mohamede1945 mohamede1945 merged commit 03ca0dd into main May 3, 2026
2 checks passed
@mohamede1945 mohamede1945 deleted the afifi/test-release-workflow2 branch May 3, 2026 23:32
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