We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a37cd commit 5914fd8Copy full SHA for 5914fd8
1 file changed
.github/workflows/web-deploy.yml
@@ -0,0 +1,37 @@
1
+name: deploy flutter web to github pages
2
+
3
+on:
4
+ # main branch에 푸쉬가 들어올 경우 실행
5
+ push:
6
+ branches:
7
+ - main
8
9
+jobs:
10
+ deploy:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ # git 기본 세팅
14
+ - name: Checkout
15
+ uses: actions/checkout@v4
16
17
+ # 플러터 세팅
18
+ - name: Setup flutter
19
+ uses: subosito/flutter-action@v2
20
+ with:
21
+ channel: stable
22
+ flutter-version: 3.29.2
23
24
+ # 추가: 의존성 설치
25
+ - name: Install dependencies
26
+ run: flutter pub get
27
28
+ # 플러터 웹 빌드
29
+ - name: Build web
30
+ run: flutter build web --base-href "/${{ github.event.repository.name }}/"
31
32
+ # github page 배포
33
+ - name: Deploy to github pages
34
+ uses: peaceiris/actions-gh-pages@v3
35
36
+ github_token: ${{ secrets.STATIC_DEPLOY_KEY }}
37
+ publish_dir: ./build/web
0 commit comments