From 91e64ff5327e2129274eaef185606d8e05736224 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Wed, 10 Jul 2024 14:22:24 +0800 Subject: [PATCH] chore: support internal build --- .github/workflows/android.yaml | 17 ++++++----------- .github/workflows/ios.yaml | 16 ++++++---------- .github/workflows/linux.yaml | 17 ++++++----------- .github/workflows/macos.yaml | 23 ++++++++--------------- .github/workflows/windows.yaml | 17 ++++++----------- 5 files changed, 32 insertions(+), 58 deletions(-) diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 8a0c8eb..968aa1d 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -14,7 +14,7 @@ on: build_name: description: "Build Version (it should match the version in pubspec.yaml)" required: true - default: "0.4.4" + default: "0.6.4" build_number: description: 'Build Number (it should be unique)' required: true @@ -26,18 +26,14 @@ on: options: - 'apk' - 'appbundle' - server_type: + internal_build: type: choice - description: 'Server Type (1 for local, 2 for cloud)' + description: 'Internal Build Type (1 for internal, 0 for external)' required: true - default: '2' + default: '1' options: + - 0 - 1 - - 2 - server_url: - description: 'Server URL' - required: true - default: 'https://beta.appflowy.cloud' env: FLUTTER_VERSION: "3.22.0" @@ -134,8 +130,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Configure release sign diff --git a/.github/workflows/ios.yaml b/.github/workflows/ios.yaml index fee2665..b4b1570 100644 --- a/.github/workflows/ios.yaml +++ b/.github/workflows/ios.yaml @@ -14,23 +14,20 @@ on: build_name: description: "Build Version (it should match the version in pubspec.yaml)" required: true - default: "0.4.4" + default: "0.6.4" build_number: description: "Build Number (it should be unique)" required: true default: "1" - server_type: + internal_build: type: choice - description: 'Server Type (1 for local, 2 for cloud)' + description: 'Internal Build Type (1 for internal, 0 for external)' required: true - default: '2' + default: '1' options: + - 0 - 1 - 2 - server_url: - description: 'Server URL' - required: true - default: 'https://beta.appflowy.cloud' env: FLUTTER_VERSION: "3.22.0" @@ -125,8 +122,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build AppFlowy diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index a4f398c..a346fef 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -14,19 +14,15 @@ on: build_name: description: "Build Version (it should match the version in pubspec.yaml)" required: true - default: "0.4.4" - server_type: + default: "0.6.4" + internal_build: type: choice - description: 'Server Type (1 for local, 2 for cloud)' + description: 'Internal Build Type (1 for internal, 0 for external)' required: true - default: '2' + default: '1' options: + - 0 - 1 - - 2 - server_url: - description: 'Server URL' - required: true - default: 'https://beta.appflowy.cloud' env: FLUTTER_VERSION: "3.22.0" @@ -109,8 +105,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build AppFlowy diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index cad35de..e326ba9 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -14,7 +14,7 @@ on: build_name: description: "Build Version (it should match the version in pubspec.yaml)" required: true - default: "0.4.4" + default: "0.6.4" arch: type: choice description: 'Build Architecture' @@ -24,18 +24,14 @@ on: - x86_64 - aarch64 - universal - server_type: + internal_build: type: choice - description: 'Server Type (1 for local, 2 for cloud)' + description: 'Internal Build Type (1 for internal, 0 for external)' required: true - default: '2' + default: '1' options: + - 0 - 1 - - 2 - server_url: - description: 'Server URL' - required: true - default: 'https://beta.appflowy.cloud' env: FLUTTER_VERSION: "3.22.0" @@ -87,8 +83,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build AppFlowy @@ -186,8 +181,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build AppFlowy @@ -287,8 +281,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build AppFlowy diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index c67724a..bcb3753 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -14,19 +14,15 @@ on: build_name: description: "Build Version (it should match the version in pubspec.yaml)" required: true - default: "0.4.4" - server_type: + default: "0.6.4" + internal_build: type: choice - description: 'Server Type (1 for local, 2 for cloud)' + description: 'Internal Build Type (1 for internal, 0 for external)' required: true - default: '2' + default: '1' options: + - 0 - 1 - - 2 - server_url: - description: 'Server URL' - required: true - default: 'https://beta.appflowy.cloud' env: FLUTTER_VERSION: "3.22.0" @@ -77,8 +73,7 @@ jobs: - name: Generate env file working-directory: frontend/appflowy_flutter run: | - echo "${{ github.env.inputs.server_url }}" > .env - echo "${{ github.env.inputs.server_type }}" >> .env + echo "INTERNAL_BUILD=${{ github.env.inputs.internal_build }}" >> .env shell: bash - name: Build Windows app