ci: build workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# - run: flutter test # TODO Needs supabase | |
- name: Configure git user | |
run: | | |
git config --global user.name "GitHub Actions Bot" | |
git config --global user.email "[email protected]" | |
- name: Compile web and put in gh-pages branch | |
run: dart run peanut | |
- name: Push gh-pages | |
run: git push origin gh-pages |