-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 993 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build
on:
push:
branches:
- main
jobs:
web:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Download dependencies
run: flutter pub get
- name: Setup Supabase
uses: supabase/setup-cli@v1
- name: Start Supabase local for tests
run: supabase db start
- run: flutter test # TODO Needs supabase - https://supabase.com/docs/guides/cli/github-action/testing
- name: Configure git
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
git fetch origin gh-pages:gh-pages
- name: Compile web and put in gh-pages branch
run: dart run peanut
- name: Push gh-pages
run: git push origin gh-pages