-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Migrate CI to Use Github Actions
This commit migrates the CI workflows from reusable workflows to local workflows within the repository. This change provides greater control and flexibility in managing the CI process. The following changes were made: - Removed the dependency on the `mifos-mobile-github-actions` repository for CI workflows. - Implemented local workflows for tagging weekly releases, PR checks, and building/publishing multi-platform artifacts. - Updated the weekly release workflow to trigger the multi-platform build and publish workflow for beta releases. - Added package name inputs to the PR check workflow for Android, desktop, web, and iOS platforms. - Removed unused workflows for publishing Android and web apps to Firebase and GitHub Pages, respectively.
- Loading branch information
Showing
6 changed files
with
73 additions
and
90 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,6 @@ | |
# - Manual workflow dispatch | ||
# - Callable from other workflows | ||
|
||
|
||
# https://github.com/openMF/mifos-mobile-github-actions/blob/main/.github/workflows/tag-weekly-release.yaml | ||
|
||
# ############################################################################## | ||
# DON'T EDIT THIS FILE UNLESS NECESSARY # | ||
# ############################################################################## | ||
|
@@ -79,7 +76,40 @@ concurrency: | |
jobs: | ||
tag: | ||
name: Tag Weekly Release | ||
uses: openMF/mifos-mobile-github-actions/.github/workflows/tag-weekly-release.yaml@main | ||
secrets: inherit | ||
with: | ||
target_branch: 'dev' | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repository with full history for proper versioning | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Setup Java environment for Gradle operations | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
# Create and push a new version tag using Reckon | ||
# This uses the 'final' stage for production-ready releases | ||
- name: Tag Weekly Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew :reckonTagPush -Preckon.stage=final | ||
|
||
# Trigger the build and publish workflow for beta release | ||
# This starts the process of building and deploying the app to various platforms | ||
- name: Trigger Workflow | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
workflow_id: 'multi-platform-build-and-publish.yml', | ||
ref: 'dev', | ||
inputs: { | ||
"release_type": "beta", | ||
}, | ||
}) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters