Skip to content

Commit

Permalink
Add GitHub Action for Flutter Web deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
toddlerer committed Oct 10, 2024
1 parent ee2643b commit 3bb272f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy Flutter Web

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "stable"

- name: Flutter Pub Get
run: flutter pub get

- name: Build Flutter Web
run: flutter build web

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
branch: "gh-pages"
folder: "build/web"

0 comments on commit 3bb272f

Please sign in to comment.