Move state #25
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 | |
'on': | |
push: | |
branches: | |
- master | |
jobs: | |
web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: flutter --version | |
- run: flutter pub get | |
- run: flutter build web | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
env: | |
FIREBASE_CLI_EXPERIMENTS: webframeworks | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ONLY_BIBLE_APP }}' | |
channelId: live | |
projectId: only-bible-app | |
android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: flutter build appbundle | |
ios: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
architecture: x64 | |
- run: flutter build ios --release --no-codesign | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
architecture: x64 | |
cache: true | |
- run: flutter config --enable-macos-desktop | |
- run: flutter build macos | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: flutter config --enable-windows-desktop | |
- run: flutter build windows | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev | |
- run: flutter config --enable-linux-desktop | |
- run: flutter build linux |