Skip to content

Commit e7f5ad9

Browse files
feat(ref: no-ref): ci-cd
* feat(ref: no-ref): pre-commit msg * feat(ref: no-ref): pre-commit msg * feat(ref: no-ref): ci-cd * feat(ref: no-ref): ci-cd * feat(ref: no-ref): ci-cd * feat(ref: no-ref): ci-cd
1 parent d863986 commit e7f5ad9

File tree

3 files changed

+61
-2
lines changed

3 files changed

+61
-2
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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Quality Checks
2+
3+
on: [push]
4+
5+
jobs:
6+
quality-check:
7+
name: Lint and Build
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Code
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Flutter
15+
uses: subosito/flutter-action@v2
16+
with:
17+
flutter-version: "3.27.1"
18+
channel: "stable"
19+
20+
- name: Install Dependencies
21+
run: flutter pub get
22+
23+
- name: Run Linter
24+
run: flutter analyze
25+
26+
- name: Build Flutter Web
27+
run: flutter build web

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ migrate_working_dir/
3636
/build/
3737

3838
# Web related
39-
lib/generated_plugin_registrant.dart
4039

4140
# Symbolication related
4241
app.*.symbols
@@ -57,4 +56,4 @@ firebase_credentials.json
5756

5857
# Assets
5958
/assets/default-icons
60-
/assets/i18n
59+
/assets/i18n

0 commit comments

Comments
 (0)