forked from sbis04/explore
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1022 Bytes
/
workflow.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
name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "beta"
- name: Enable Web
run: flutter config --enable-web
working-directory: ./
- name: Install Dependencies
run: flutter packages get
working-directory: ./
- name: Build Web
run: flutter build web
working-directory: ./
- name: Deploy
run: |
cd build/web
git init
git config user.name "CI"
git config user.email "[email protected]"
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/sbis04/explore.git
git checkout -b gh-pages
git add .
git commit -m "Add GitHub Pages support"
git push --force secure-origin gh-pages