-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (38 loc) · 1.09 KB
/
main.yml
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: deploy web
on:
push:
branches:
- main
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
defaults:
run:
working-directory: example
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: 📦 Install Dependencies
run: |
flutter pub global activate very_good_cli
- name: 🛠 Build web
run: flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true
- name: 🚀 Deploy to github pages
run: |
cd build/web
git init
git config --global user.email "[email protected]"
git config --global user.name "poyraz"
git status
git remote add origin https://${{secrets.commit_secret}}github.com/kspo/super_cupertino_navigation_bar.git
git checkout -b gh-pages
git add --all
git commit -m "Update web"
git push origin gh-pages -f