Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Added action to build and commit the frontend

SwiftyOS833a37e9a65e
diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml
new file mode 100644
index 0000000000..e29a5a756f
--- /dev/null
+++ b/.github/workflows/build-frontend.yml
@@ -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 "[email protected]"
+ git config --local user.name "GitHub Action"
+ git add frontend/build/web
+ git commit -m "Update frontend build" -a
+ git push
diff --git a/frontend/.gitignore b/frontend/.gitignore
index 24476c5d1e..036283f834 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -30,7 +30,8 @@ migrate_working_dir/
.packages
.pub-cache/
.pub/
-/build/
+/build/*
+!/build/web/
# Symbolication related
app.*.symbols