Skip to content

Commit

Permalink
docs: Add GH Pages workflow (#27)
Browse files Browse the repository at this point in the history
* Add GH Pages workflow

* Clean up
  • Loading branch information
andyhorn authored May 9, 2024
1 parent fafb38f commit c03a2f5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy example to GH Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Build
run: cd example && flutter build web

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: example/build

0 comments on commit c03a2f5

Please sign in to comment.