refactor(ci): replace mobile-specific terms with generic product terminology

🔄 Updated workflows and scripts to use product-agnostic naming:

Workflow Changes:
- 📱 Mobile Release → 📦 Product Release
- 🚨 Mobile Hotfix → 🚨 Product Hotfix
- Mobile App → Product (in descriptions)
- "mobile app" → "product" (in messages and tags)
- "pubspec.yaml" → "version file" (in user-facing text)

Display Names:
- Worker Mobile → Worker Product
- Client Mobile → Client Product
- Staff Mobile App → Staff Product (Worker)
- Client Mobile App → Client Product

Benefits:
 Makes workflows extensible for other product types
 Consistent terminology across all automation
 Easier to add web, backend, or other products later
 Keeps implementation details (paths, scripts) unchanged
 Maintains backward compatibility with existing tags

Note: File paths remain unchanged (apps/mobile/...) as they are implementation-specific
This commit is contained in:
Achintha Isuru
2026-03-05 11:58:28 -05:00
parent 0e296bf83b
commit 3e31002d1e
6 changed files with 26 additions and 26 deletions

View File

@@ -1,10 +1,10 @@
name: 📱 Mobile Release
name: <EFBFBD> Product Release
on:
workflow_dispatch:
inputs:
app:
description: '📱 Mobile App'
description: '📦 Product'
required: true
type: choice
options:
@@ -31,7 +31,7 @@ on:
jobs:
validate-and-create-release:
name: 🚀 Create Mobile Release
name: 🚀 Create Product Release
runs-on: ubuntu-latest
permissions:
contents: write
@@ -47,7 +47,7 @@ jobs:
chmod +x .github/scripts/*.sh
echo "✅ Scripts are now executable"
- name: 📖 Extract version from pubspec.yaml
- name: 📖 Extract version from version file
id: version
run: |
VERSION=$(.github/scripts/extract-version.sh "${{ github.event.inputs.app }}")
@@ -69,7 +69,7 @@ jobs:
TAG_NAME="${{ steps.tag.outputs.tag_name }}"
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "❌ Error: Tag $TAG_NAME already exists"
echo "💡 Tip: Update the version in pubspec.yaml before creating a new release"
echo "💡 Tip: Update the version in the version file before creating a new release"
exit 1
fi
echo "✅ Tag does not exist, proceeding..."
@@ -95,7 +95,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "$TAG_NAME" -m "🚀 Release ${APP} mobile app ${VERSION} to ${ENV}"
git tag -a "$TAG_NAME" -m "🚀 Release ${APP} product ${VERSION} to ${ENV}"
git push origin "$TAG_NAME"
echo "✅ Tag created and pushed: $TAG_NAME"
@@ -112,9 +112,9 @@ jobs:
# Generate release title
if [ "$APP" = "worker" ]; then
APP_DISPLAY="Worker Mobile"
APP_DISPLAY="Worker Product"
else
APP_DISPLAY="Client Mobile"
APP_DISPLAY="Client Product"
fi
ENV_UPPER=$(echo "$ENV" | tr '[:lower:]' '[:upper:]')