-
Notifications
You must be signed in to change notification settings - Fork 51
44 lines (39 loc) · 1.11 KB
/
web_deploy.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
44
name: web demo
on:
push:
branches:
- main
paths:
- '.github/workflows/web_deploy.yml'
- 'math_keyboard_demo/lib/**'
- 'math_keyboard_demo/web/**'
- 'math_keyboard_demo/pubspec.yaml'
- 'math_keyboard/pubspec.yaml'
jobs:
demo-deploy:
timeout-minutes: 6
runs-on: ubuntu-latest
name: deployment of math_keyboard_demo
steps:
- uses: actions/[email protected]
with:
persist-credentials: false
- uses: subosito/[email protected]
with:
channel: 'stable'
- name: Build demo web app
run: |
cd math_keyboard_demo
flutter pub get
flutter build web
cd build/web
touch ".nojekyll"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: math_keyboard_demo/build/web
GIT_CONFIG_NAME: simpleclub-bot
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: Deploy math_keyboard_demo web page