Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hetkpatel authored Jan 23, 2024
1 parent 42bb815 commit fe1e39d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'

- name: Setup Flutter
run: |
flutter config --enable-web
- name: Build web
run: |
flutter pub get
flutter build web
- name: Deploy to GH Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web

0 comments on commit fe1e39d

Please sign in to comment.