-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.05 KB
/
Copy pathmain.yml
File metadata and controls
43 lines (37 loc) · 1.05 KB
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
34
35
36
37
38
39
40
41
42
43
name: "Web - Build and Publish"
on:
push:
branches:
- main
jobs:
build-and-deploy:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Configure Flutter for web
shell: bash
run: |
flutter config --enable-web
flutter create --platforms=web .
- name: Build the Flutter web application
shell: bash
run: |
flutter pub get
flutter build web --release --base-href "/ThreeactionsArea/"
- name: Configure Git
shell: bash
run: |
git config --global user.name "GreyLabsDev"
git config --global user.email "greyson.dean@gmail.com"
git config --global --add safe.directory /github/workspace
- name: Deploy to GitHub pages
shell: bash
run: |
git add build/web/ -f
git commit -m "Deploy Flutter Web Application"
git push origin $(git subtree split --prefix=build/web/):gh-pages -f