Another update to .github/workflows/publish.yaml... #58
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: Publish to GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
working-directory: example | |
- name: Build Web | |
run: flutter build web --release | |
working-directory: example | |
- name: Verify Build Directory | |
run: ls -l example/build/web | |
- name: Deploy to GitHub Pages | |
uses: bluefireteam/flutter-gh-pages@v7 | |
with: | |
working-directory: example |