Skip to content

Another update to .github/workflows/publish.yaml, trying to get it to… #57

Another update to .github/workflows/publish.yaml, trying to get it to…

Another update to .github/workflows/publish.yaml, trying to get it to… #57

Workflow file for this run

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