-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.04 KB
/
dart.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
name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.6'
- name: Enable web
run: flutter config --enable-web
- name: Get dependencies
run: flutter pub get
- name: Build web
run: flutter build web --release
- name: Deploy to Github Pages
run: |
cd build/web
git init
git config --global user.email praslnx8@gmail.com
git config --global user.name praslnx8
git status
git remote add origin https://${{secrets.COMMIT_SECRET}}@github.com/wealth-wave/wealth-wave.github.io.git
git checkout -b main
git add .
git commit -m "update"
git push --set-upstream origin main -f