-
Notifications
You must be signed in to change notification settings - Fork 31
31 lines (31 loc) · 907 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
name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
name: Build And Deploy Github Pages
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter config --enable-web
- run: flutter pub get
- run: flutter build web --release
working-directory: ./example
- run: |
cd example/build/web
git init
git config --global user.email rlawjdxo1212@naver.com
git config --global user.name origogi
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/Origogi/Vertical_Card_Pager.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f