Skip to content

Commit

Permalink
chore: support internal build
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jul 10, 2024
1 parent 9342556 commit 91e64ff
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 58 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
23 changes: 8 additions & 15 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91e64ff

Please sign in to comment.