π New version 1.1.2+5 #20
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: Deploy Flutter Web | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build Web | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Flutter action | |
id: flutter-action | |
uses: subosito/flutter-action@v2.7.0 | |
with: | |
channel: "stable" | |
- name: Flutter info | |
run: | | |
echo channel=${{ steps.flutter-action.outputs.channel }} >> $GITHUB_STEP_SUMMARY | |
echo version=${{ steps.flutter-action.outputs.version }} >> $GITHUB_STEP_SUMMARY | |
echo architecture=${{ steps.flutter-action.outputs.architecture }} >> $GITHUB_STEP_SUMMARY | |
- name: Build for Web | |
run: | | |
flutter pub get | |
flutter build web | |
- name: Deploy π | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: build/web # The folder the action should deploy. | |