diff --git a/.github/scripts/create-release-summary.sh b/.github/scripts/create-release-summary.sh index 9b182968..54499bfc 100755 --- a/.github/scripts/create-release-summary.sh +++ b/.github/scripts/create-release-summary.sh @@ -17,10 +17,10 @@ fi # Determine display names if [ "$APP" = "worker" ]; then - APP_DISPLAY="Worker Mobile" + APP_DISPLAY="Worker Product" APP_EMOJI="👷" else - APP_DISPLAY="Client Mobile" + APP_DISPLAY="Client Product" APP_EMOJI="💼" fi diff --git a/.github/scripts/extract-release-notes.sh b/.github/scripts/extract-release-notes.sh index 31c59f2b..292bbd65 100755 --- a/.github/scripts/extract-release-notes.sh +++ b/.github/scripts/extract-release-notes.sh @@ -19,10 +19,10 @@ fi # Determine CHANGELOG path and app name if [ "$APP" = "worker" ]; then CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md" - APP_NAME="Staff Mobile App (Worker)" + APP_NAME="Staff Product (Worker)" else CHANGELOG_PATH="apps/mobile/apps/client/CHANGELOG.md" - APP_NAME="Client Mobile App" + APP_NAME="Client Product" fi # Try to extract release notes for this version diff --git a/.github/scripts/extract-version.sh b/.github/scripts/extract-version.sh index 0df25d72..dc1eed76 100755 --- a/.github/scripts/extract-version.sh +++ b/.github/scripts/extract-version.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Extract version from pubspec.yaml for mobile apps +# Extract version from version file for products # Usage: ./extract-version.sh # app: worker or client @@ -15,10 +15,10 @@ fi # Determine pubspec path if [ "$APP" = "worker" ]; then PUBSPEC_PATH="apps/mobile/apps/staff/pubspec.yaml" - APP_NAME="Staff Mobile App (Worker)" + APP_NAME="Staff Product (Worker)" else PUBSPEC_PATH="apps/mobile/apps/client/pubspec.yaml" - APP_NAME="Client Mobile App" + APP_NAME="Client Product" fi # Check if pubspec exists diff --git a/.github/scripts/generate-tag-name.sh b/.github/scripts/generate-tag-name.sh index a02629fe..3784c5af 100755 --- a/.github/scripts/generate-tag-name.sh +++ b/.github/scripts/generate-tag-name.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Generate tag name for mobile release +# Generate tag name for product release # Usage: ./generate-tag-name.sh set -e diff --git a/.github/workflows/mobile-hotfix.yml b/.github/workflows/mobile-hotfix.yml index cd2df197..a8261ef7 100644 --- a/.github/workflows/mobile-hotfix.yml +++ b/.github/workflows/mobile-hotfix.yml @@ -1,21 +1,21 @@ -name: Mobile Hotfix +name: 🚨 Product Hotfix on: workflow_dispatch: inputs: app: - description: 'Mobile App' + description: '📦 Product' required: true type: choice options: - worker - client production_tag: - description: 'Current Production Tag (e.g., krow-withus-worker-mobile/prod-v0.1.0)' + description: '🏷️ Current Production Tag (e.g., krow-withus-worker-mobile/prod-v0.1.0)' required: true type: string issue_description: - description: 'Brief issue description' + description: '📝 Brief issue description' required: true type: string @@ -118,11 +118,11 @@ jobs: if [ "$APP" = "worker" ]; then PUBSPEC_PATH="apps/mobile/apps/staff/pubspec.yaml" CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md" - APP_NAME="Staff Mobile App" + APP_NAME="Staff Product" else PUBSPEC_PATH="apps/mobile/apps/client/pubspec.yaml" CHANGELOG_PATH="apps/mobile/apps/client/CHANGELOG.md" - APP_NAME="Client Mobile App" + APP_NAME="Client Product" fi # Update pubspec.yaml version @@ -150,10 +150,10 @@ jobs: if [ "$APP" = "worker" ]; then CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md" - APP_NAME="Staff Mobile App" + APP_NAME="Staff Product" else CHANGELOG_PATH="apps/mobile/apps/client/CHANGELOG.md" - APP_NAME="Client Mobile App" + APP_NAME="Client Product" fi if [ -f "$CHANGELOG_PATH" ]; then @@ -216,9 +216,9 @@ From production tag: ${{ github.event.inputs.production_tag }}" APP="${{ github.event.inputs.app }}" if [ "$APP" = "worker" ]; then - APP_DISPLAY="Worker Mobile" + APP_DISPLAY="Worker Product" else - APP_DISPLAY="Client Mobile" + APP_DISPLAY="Client Product" fi PR_TITLE="🚨 HOTFIX: ${APP_DISPLAY} v${HOTFIX_VERSION} - ${ISSUE}" diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml index 4caadd0a..6ff12819 100644 --- a/.github/workflows/mobile-release.yml +++ b/.github/workflows/mobile-release.yml @@ -1,10 +1,10 @@ -name: 📱 Mobile Release +name: � 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:]')