Skip to content

Commit 21562c3

Browse files
feat: Setup application modules (#2760)
1 parent d8aba05 commit 21562c3

File tree

218 files changed

+11170
-60484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+11170
-60484
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow is designed to automate the process of building and deploying a Kotlin/JS web application to GitHub Pages.
2+
# It ensures that whenever changes are merged into the dev branch or when manually triggered, the web application is built,
3+
# packaged, and deployed to the GitHub Pages environment, making it accessible online.
4+
5+
# Key Features:
6+
# - Automated web application build using Kotlin/JS
7+
# - Deployment to GitHub Pages
8+
# - Supports configurable web project module name
9+
# - Manages deployment concurrency and environment settings
10+
# - Provides secure deployment with proper permissions
11+
12+
# Prerequisites:
13+
# - Kotlin Multiplatform/JS project configured with Gradle
14+
# - Web module set up for browser distribution
15+
# - Java 17 or compatible version
16+
# - GitHub Pages enabled in repository settings
17+
18+
# Workflow Configuration:
19+
# - Requires input of `web_package_name` to specify the web project module
20+
# - Uses Windows runner for build process
21+
# - Leverages GitHub Actions for build, pages configuration, and deployment
22+
23+
# Workflow Triggers:
24+
# - Can be manually called from other workflows
25+
# - Supports workflow_call for reusability across projects
26+
27+
# Deployment Process:
28+
# 1. Checkout repository code
29+
# 2. Set up Java development environment
30+
# 3. Build Kotlin/JS web application
31+
# 4. Configure GitHub Pages
32+
# 5. Upload built artifacts
33+
# 6. Deploy to GitHub Pages
34+
35+
# https://github.com/openMF/mifos-mobile-github-actions/blob/main/.github/workflows/build-and-deploy-site.yaml
36+
37+
# ##############################################################################
38+
# DON'T EDIT THIS FILE UNLESS NECESSARY #
39+
# ##############################################################################
40+
41+
name: Build And Deploy Web App
42+
43+
# Trigger conditions for the workflow
44+
on:
45+
workflow_dispatch:
46+
47+
# Concurrency settings to manage multiple workflow runs
48+
# This ensures orderly deployment to production environment
49+
concurrency:
50+
group: "web-pages"
51+
cancel-in-progress: false
52+
53+
permissions:
54+
contents: read # Read repository contents
55+
pages: write # Write to GitHub Pages
56+
id-token: write # Write authentication tokens
57+
pull-requests: write # Write to pull requests
58+
59+
jobs:
60+
build_and_deploy_web:
61+
name: Build And Deploy Web App
62+
uses: openMF/mifos-mobile-github-actions/.github/workflows/build-and-deploy-site.yaml@main
63+
secrets: inherit
64+
with:
65+
web_package_name: 'cmp-web' # <-- Change with your web package name
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Cleanup Cache
2+
3+
on:
4+
pull_request:
5+
types: [ closed ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
cleanup:
10+
uses: openMF/mifos-mobile-github-actions/.github/workflows/cache-cleanup.yaml@main
11+
with:
12+
cleanup_pr: ${{ github.event_name == 'pull_request' && github.event.repository.private == true }}
13+
cleanup_all: ${{ github.event_name == 'workflow_dispatch' }}
14+
secrets:
15+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/master_dev_ci.yml

Lines changed: 0 additions & 186 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Automated Monthly Release Versioning Workflow
2+
# ============================================
3+
4+
# Purpose:
5+
# - Automatically create consistent monthly version tags
6+
# - Implement a calendar-based versioning strategy
7+
# - Facilitate easy tracking of monthly releases
8+
9+
# Versioning Strategy:
10+
# - Tag format: YYYY.MM.0 (e.g., 2024.01.0 for January 2024)
11+
# - First digit: Full year
12+
# - Second digit: Month (01-12)
13+
# - Third digit: Patch version (starts at 0, allows for potential updates)
14+
15+
# Key Features:
16+
# - Runs automatically on the first day of each month at 3:30 AM UTC
17+
# - Can be manually triggered via workflow_dispatch
18+
# - Uses GitHub Actions to generate tags programmatically
19+
# - Provides a predictable and systematic versioning approach
20+
21+
# Prerequisites:
22+
# - Repository configured with GitHub Actions
23+
# - Permissions to create tags
24+
# - Access to actions/checkout and tag creation actions
25+
26+
# Workflow Triggers:
27+
# - Scheduled monthly run
28+
# - Manual workflow dispatch
29+
# - Callable from other workflows
30+
31+
# Actions Used:
32+
# 1. actions/checkout@v4 - Checks out repository code
33+
# 2. josStorer/get-current-time - Retrieves current timestamp
34+
# 3. rickstaa/action-create-tag - Creates Git tags
35+
36+
# Example Generated Tags:
37+
# - 2024.01.0 (January 2024 initial release)
38+
# - 2024.02.0 (February 2024 initial release)
39+
# - 2024.02.1 (Potential patch for February 2024)
40+
41+
# https://github.com/openMF/mifos-mobile-github-actions/blob/main/.github/workflows/monthly-version-tag.yaml
42+
43+
# ##############################################################################
44+
# DON'T EDIT THIS FILE UNLESS NECESSARY #
45+
# ##############################################################################
46+
47+
name: Tag Monthly Release
48+
49+
on:
50+
# Allow manual triggering of the workflow
51+
workflow_dispatch:
52+
# Schedule the workflow to run monthly
53+
schedule:
54+
# Runs at 03:30 UTC on the first day of every month
55+
# Cron syntax: minute hour day-of-month month day-of-week
56+
- cron: '30 3 1 * *'
57+
58+
concurrency:
59+
group: "monthly-release"
60+
cancel-in-progress: false
61+
62+
jobs:
63+
monthly_release:
64+
name: Tag Monthly Release
65+
uses: openMF/mifos-mobile-github-actions/.github/workflows/monthly-version-tag.yaml@main
66+
secrets: inherit

.github/workflows/monthly_release.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)