Update main.yml #9
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 distribute | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cedvdb/action-flutter-build-web@v1 | |
with: | |
build-cmd: flutter build web --release --base-href /flutter_quiz/ | |
working-directory: ./ | |
- name: Archive Production artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: release | |
path: build/web | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: build/web | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
build-apple: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cedvdb/action-flutter-build-ios@v1 | |
with: | |
# always use --export-options-plist=ios/GithubActionsExportOptions.plist | |
build-cmd: flutter build ipa --release --flavor dev --export-options-plist=ios/GithubActionsExportOptions.plist | |
working-directory: ./ | |
- name: Archive IPA | |
uses: actions/upload-artifact@v2 | |
with: | |
name: release-ipa | |
# Try running the build locally with the build command to be sure of this path | |
path: build/ios/ipa/App-dev.ipa | |