Added action to build and commit the frontend

This commit is contained in:
SwiftyOS
2023-09-19 12:02:35 +02:00
parent bf03dd8739
commit 833a37e9a6
2 changed files with 28 additions and 1 deletions

26
.github/workflows/build-frontend.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Build and Commit Frontend
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '3.13.2'
- name: Build Flutter Web
run: |
cd frontend
flutter build web --base-href /app/
- name: Commit and Push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add frontend/build/web
git commit -m "Update frontend build" -a
git push

3
frontend/.gitignore vendored
View File

@@ -30,7 +30,8 @@ migrate_working_dir/
.packages .packages
.pub-cache/ .pub-cache/
.pub/ .pub/
/build/ /build/*
!/build/web/
# Symbolication related # Symbolication related
app.*.symbols app.*.symbols