Update settings.gradle #4
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
name: Build and upload APK | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and Upload to release | |
permissions: | |
contents: write | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Create .env File | |
run: | | |
echo "endpoint=$ENDPOINT" > .env | |
echo "projectId=${{secrets.PROJECTID}}" >> .env | |
echo "databaseId=${{secrets.DATABASEID}}" >> .env | |
echo "userCollection=${{secrets.USERCOLLECTION}}" >> .env | |
echo "tweetCollection=${{secrets.TWEETCOLLECTION}}" >> .env | |
echo "notificationCollections=${{secrets.NOTIFICATIONCOLLECTIONS}}" >> .env | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.3' | |
channel: 'stable' | |
- name: verify flutter version | |
run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build APK and ios | |
run: flutter build apk --release --split-per-abi | |
- run: | | |
flutter build ios --no-codesign | |
cd build/ios/iphoneos | |
mkdir Payload | |
cd Payload | |
ln -s ../Runner.app | |
cd .. | |
zip -r app.ipa Payload | |