Allow deprecated members #19
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_deer web deploy | |
# push 提交中修改`pubspec.yaml`触发此workflow。 | |
# 为了避免每次部署,这里使用一个不存在的文件名。 | |
on: | |
push: | |
paths: | |
- 'pubspec.yaml' | |
jobs: | |
web_build_and_deploy: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2.3.1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.0' | |
channel: 'stable' | |
architecture: x64 | |
- name: "Web Build 🔧" | |
run: | | |
flutter pub get | |
flutter build web | |
- name: "Web Deploy 🚀" | |
# https://github.com/JamesIves/github-pages-deploy-action | |
uses: JamesIves/github-pages-deploy-action@4.0.0 | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
branch: gh-pages | |
folder: build/web |