-
-
Notifications
You must be signed in to change notification settings - Fork 185
36 lines (35 loc) · 946 Bytes
/
gh_pages.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
name: GH-Pages
on:
push:
branches:
- stable
pull_request:
branches:
- stable
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install Dependencies
run: flutter pub get
working-directory: ./example
- name: Build Web
run: flutter build web
working-directory: ./example
- name: Deploy
run: |
cd example/build/web
git init
git config user.name "GroovinChip"
git config user.email "[email protected]"
git remote add secure-origin https://username:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git checkout -b gh-pages
git add .
git commit -m "update"
git push --force secure-origin gh-pages