forked from crossplatformkorea/flutter_boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 809 Bytes
/
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
name: Github Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build_and_deploy_web:
runs-on: ubuntu-latest
env:
FLUTTER_VERSION: "3.10.3"
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: COPY ENV
run: cp .env.sample .env
- name: Pub get
run: flutter pub get
- run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Enable web
run: flutter config --enable-web
- name: Build web
run: flutter build web --release
- uses: erickzanardo/flutter-gh-pages@v7
with:
targetBranch: gh-pages
baseHref: /flutter_seoul/