Another update to .github/workflows/publish.yaml, trying to get it to… #57
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 # Use v2 for the latest updates | |
with: | |
flutter-version: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
working-directory: example # Ensure pub dependencies are fetched | |
- name: Build Web | |
run: flutter build web --release | |
working-directory: example # Ensures the build happens inside `example/` | |
- name: Deploy to GitHub Pages | |
uses: bluefireteam/flutter-gh-pages@v7 | |
with: | |
workingDir: example |