update todo-list && do not build for windows #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: Flutter build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.16.8' | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Build for Android | |
run: flutter build apk --split-per-abi --release | |
- name: Build for web | |
run: flutter build web | |
- name: Archive android | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: build/app/outputs/flutter-apk/ | |
- name: Archive web | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: build/web | |