Merge pull request #4 from gildurao/feature/turtle-stack #48
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 Web | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: "3.16.x" # you can use 1.12 | |
channel: "stable" # Currently you have to use beta channel for Flutter web. | |
- name: Upgrades Flutter | |
run: flutter upgrade | |
working-directory: ./example | |
- name: Enable Web | |
run: flutter config --enable-web | |
working-directory: ./example | |
- name: Install Dependencies | |
run: flutter packages get | |
working-directory: ./example | |
- name: Build Web | |
run: flutter build web | |
working-directory: ./example | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: example/build/web |