-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
194 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /bin/bash | ||
|
||
BUILD_NAME=$1 | ||
BUILD_NUMBER=$2 | ||
|
||
flutter build ios --flavor development --release --no-codesign --build-name $BUILD_NAME --build-number $BUILD_NUMBER --target lib/main_development.dart | ||
xcodebuild -resolvePackageDependencies -workspace ios/Runner.xcworkspace -scheme development -configuration Release-development | ||
xcodebuild -workspace ios/Runner.xcworkspace -scheme development -configuration Release-development DEVELOPMENT_TEAM=Y5U9T77F2K -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath build-output/app.xcarchive PROVISIONING_PROFILE_SPECIFIER="development" clean archive CODE_SIGN_IDENTITY="iPhone Developer" | ||
xcodebuild -exportArchive -archivePath build-output/app.xcarchive -exportPath build-output/ios -exportOptionsPlist ios/exportOptions.dev.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash | ||
|
||
BUILD_NAME=$1 | ||
BUILD_NUMBER=$2 | ||
|
||
sed -i '' 's/.env.develop/.env.production/' lib/env/env.dart | ||
flutter build ios --flavor production --release --no-codesign --build-name $BUILD_NAME --build-number $BUILD_NUMBER --target lib/main_production.dart | ||
xcodebuild -resolvePackageDependencies -workspace ios/Runner.xcworkspace -scheme production -configuration Release-production | ||
xcodebuild -workspace ios/Runner.xcworkspace -scheme production -configuration Release-production DEVELOPMENT_TEAM=Y5U9T77F2K -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath build-output/app.xcarchive PROVISIONING_PROFILE_SPECIFIER="githubactions-prod" clean archive CODE_SIGN_IDENTITY="Apple Distribution" | ||
xcodebuild -exportArchive -archivePath build-output/app.xcarchive -exportPath build-output/ios -exportOptionsPlist ios/exportOptions.prod.plist |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Publish Development App | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build_and_test: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
store_artifacts: true | ||
prod_release: false | ||
secrets: inherit | ||
|
||
dev_upload_ios: | ||
name: Upload iOS build to Firebase App Distribution | ||
runs-on: ubuntu-latest | ||
needs: [build_and_test] | ||
|
||
steps: | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3.0.0 | ||
with: | ||
name: ios | ||
|
||
- name: Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1.3.3 | ||
with: | ||
appId: ${{ secrets.FIREBASE_IOS_APP_ID }} | ||
token: ${{ secrets.FIREBASE_TOKEN }} | ||
# FIXME: token is deprecated, use serviceCredentialsFileContent instead | ||
# serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
groups: analogio-devs | ||
file: Analog.ipa | ||
|
||
dev_upload_android: | ||
name: Upload Android build to Firebase App Distribution | ||
runs-on: ubuntu-latest | ||
needs: [build_and_test] | ||
|
||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3.0.0 | ||
with: | ||
name: android | ||
|
||
- name: Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1.3.3 | ||
with: | ||
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }} | ||
token: ${{ secrets.FIREBASE_TOKEN }} | ||
# FIXME: token is deprecated, use serviceCredentialsFileContent instead | ||
# serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | ||
groups: analogio-devs | ||
file: app-development-release.apk |
Oops, something went wrong.