Skip to content

Commit ebd21a8

Browse files
feat(ref: no-ref): ci-cd
1 parent 2780121 commit ebd21a8

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
deploy:
10+
name: Build and Deploy to GitHub Pages
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: "3.27.1"
21+
channel: "stable"
22+
23+
- name: Install Dependencies
24+
run: flutter pub get
25+
26+
- name: Build Flutter Web
27+
run: flutter build web
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: build/web

.github/workflows/ci-checks.yml renamed to .github/workflows/quality-check.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: CI Checks
1+
name: Quality Checks
22

3-
on:
4-
push:
5-
branches:
6-
- '**'
3+
on: [push]
74

85
jobs:
9-
lint-and-build:
10-
name: ci checks
6+
quality-check:
7+
name: Lint and Build
118
runs-on: ubuntu-latest
129

1310
steps:
@@ -27,4 +24,4 @@ jobs:
2724
run: flutter analyze
2825

2926
- name: Build Flutter Web
30-
run: flutter build web
27+
run: flutter build web

0 commit comments

Comments
 (0)