mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 05:54:26 +01:00
Added action to build and commit the frontend
This commit is contained in:
26
.github/workflows/build-frontend.yml
vendored
Normal file
26
.github/workflows/build-frontend.yml
vendored
Normal 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
3
frontend/.gitignore
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user