diff --git a/.github/workflows/build_android_apk.yaml b/.github/workflows/build_android_apk.yaml index c2a1051bd1..f4f4e1bf9f 100644 --- a/.github/workflows/build_android_apk.yaml +++ b/.github/workflows/build_android_apk.yaml @@ -96,4 +96,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: app-arm64-v8a-release.apk - path: frontend/appflowy_flutter/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk + path: frontend/appflowy_flutter/build/app/outputs/flutter-apk/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64d379f66a..dec0361e06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,6 +101,17 @@ jobs: run: | iscc /F${{ env.WINDOWS_INSTALLER_NAME }} inno_setup_config.iss /DAppVersion=${{ github.ref_name }} + - name: Upload Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ${{ env.WINDOWS_APP_RELEASE_PATH }}\${{ env.WINDOWS_ZIP_NAME }} + asset_name: ${{ env.WINDOWS_ZIP_NAME }} + asset_content_type: application/octet-stream + - name: Upload Installer Asset id: upload-installer-asset uses: actions/upload-release-asset@v1 @@ -188,6 +199,16 @@ jobs: working-directory: ${{ env.MACOS_APP_RELEASE_PATH }} run: zip --symlinks -qr ${{ env.MACOS_X86_ZIP_NAME }} AppFlowy.app + - name: Upload Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_X86_ZIP_NAME }} + asset_name: ${{ env.MACOS_X86_ZIP_NAME }} + asset_content_type: application/octet-stream + - name: Upload DMG Asset uses: actions/upload-release-asset@v1 env: @@ -276,6 +297,16 @@ jobs: working-directory: ${{ env.MACOS_APP_RELEASE_PATH }} run: zip --symlinks -qr ${{ env.MACOS_AARCH64_ZIP_NAME }} AppFlowy.app + - name: Upload Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_AARCH64_ZIP_NAME }} + asset_name: ${{ env.MACOS_AARCH64_ZIP_NAME }} + asset_content_type: application/octet-stream + - name: Upload DMG Asset uses: actions/upload-release-asset@v1 env: @@ -292,7 +323,7 @@ jobs: needs: create-release env: LINUX_APP_RELEASE_PATH: frontend/appflowy_flutter/product/${{ github.ref_name }}/linux/Release - LINUX_ZIP_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.tar.gz + LINUX_ZIP_NAME: AppFlowy-${{ matrix.job.target }}-x86_64.tar.gz LINUX_PACKAGE_DEB_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.deb LINUX_PACKAGE_RPM_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.rpm LINUX_PACKAGE_TMP_RPM_NAME: AppFlowy-${{ github.ref_name }}-2.x86_64.rpm diff --git a/frontend/appflowy_flutter/lib/env/cloud_env.dart b/frontend/appflowy_flutter/lib/env/cloud_env.dart index b643bb3455..b62e898c57 100644 --- a/frontend/appflowy_flutter/lib/env/cloud_env.dart +++ b/frontend/appflowy_flutter/lib/env/cloud_env.dart @@ -52,7 +52,8 @@ const String kAppflowyCloudUrl = "https://beta.appflowy.cloud"; /// Future getAuthenticatorType() async { final value = await getIt().get(KVKeys.kCloudType); - if (value.isNone() && integrationMode().isRelease) { + if (value.isNone() && !integrationMode().isUnitTest) { + // if the cloud type is not set, then set it to AppFlowy Cloud as default. await setAuthenticatorType(AuthenticatorType.appflowyCloud); return AuthenticatorType.appflowyCloud; } diff --git a/frontend/scripts/makefile/flutter.toml b/frontend/scripts/makefile/flutter.toml index 80b8c6ce8a..6e6c8957c5 100644 --- a/frontend/scripts/makefile/flutter.toml +++ b/frontend/scripts/makefile/flutter.toml @@ -250,7 +250,7 @@ script_runner = "@shell" script = [""" cd appflowy_flutter/ flutter pub get - flutter build ipa --build-version ${BUILD_VERSION} --split-debug-info=./ --obfuscate --verbose + flutter build ipa --split-debug-info=./ --obfuscate --verbose """] script_runner = "@shell"