Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make workflows friendly for forks #158

Merged
merged 8 commits into from
Dec 18, 2022
Merged

Make workflows friendly for forks #158

merged 8 commits into from
Dec 18, 2022

Conversation

valldrac
Copy link
Member

@valldrac valldrac commented Dec 18, 2022

The following commits are intended to make this repository fork-friendly by refactoring the workflows of GitHub Actions.

This CI setup allows to create a Molly release every time a new tag is pushed to the repository. To trigger a final build, push the tag to the main branch. To trigger a pre-release build, push to any other branch. Tags can be lightweight or annotated, although the latter are preferred for stable releases.

A draft containing the built APKs will be created in GitHub Releases after running the workflow. Once the draft is reviewed and published, the APKs are recompiled and reproducible builds are tested automatically.

The build configuration is read from app/gradle.properties and overridden by either reproducible-builds/ci/release.env or reproducible-builds/ci/prerelease.env.

Pre-releases have different app name ("Molly Insider") and package ID so they can be installed side-by-side with final releases.

To optionally sign the APKs, store the KeyStore into GitHub Secrets:

  • For final releases:
    • RELEASE_KEYSTORE containing the KeyStore file encoded in base64, key alias: release
    • RELEASE_KEYSTORE_PASSWORD with the password
  • For pre-releases:
    • TEST_KEYSTORE containing the KeyStore file encoded in base64, key alias: test
    • TEST_KEYSTORE_PASSWORD with the password

To use your own Google Maps API Key create a secret MAPS_API_KEY.

If the PUBLISH_PAT secret exists, it takes preference over GITHUB_TOKEN. This is useful in case the default token has read-only permissions.

@valldrac valldrac marked this pull request as ready for review December 18, 2022 11:27
@valldrac valldrac merged commit 92af04f into main Dec 18, 2022
@valldrac valldrac deleted the workflow-improvements branch December 18, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant