Skip to content

Commit 08fec77

Browse files
committed
Add GitHub Pages deployment configuration
1 parent aab9963 commit 08fec77

5 files changed

Lines changed: 94 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: subosito/flutter-action@v2
14+
with:
15+
flutter-version: '3.19.0'
16+
channel: 'stable'
17+
18+
- name: Install dependencies
19+
run: flutter pub get
20+
21+
- name: Build
22+
run: flutter build web --release
23+
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./build/web

.gitignore

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,18 @@ migrate_working_dir/
1818
*.iws
1919
.idea/
2020

21-
# The .vscode folder contains launch configuration and tasks you configure in
22-
# VS Code which you may wish to be included in version control, so this line
23-
# is commented out by default.
24-
#.vscode/
21+
# VS Code related
22+
.vscode/
23+
*.code-workspace
24+
25+
# Node.js related
26+
node_modules/
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
package-lock.json
31+
yarn.lock
32+
.pnpm-lock.yaml
2533

2634
# Flutter/Dart/Pub related
2735
**/doc/api/
@@ -32,6 +40,14 @@ migrate_working_dir/
3240
.pub-cache/
3341
.pub/
3442
/build/
43+
*.g.dart
44+
*.freezed.dart
45+
46+
# Web related
47+
lib/generated_plugin_registrant.dart
48+
web/favicon.png
49+
web/icons/
50+
web/manifest.json
3551

3652
# Symbolication related
3753
app.*.symbols
@@ -44,5 +60,38 @@ app.*.map.json
4460
/android/app/profile
4561
/android/app/release
4662

63+
# Environment files
4764
.env
48-
devtools_options.yaml
65+
.env.*
66+
!.env.example
67+
68+
# Deployment related
69+
.vercel
70+
.github/workflows/*.yml
71+
!.github/workflows/deploy.yml
72+
73+
# Generated files
74+
*.g.dart
75+
*.freezed.dart
76+
*.mocks.dart
77+
*.config.dart
78+
79+
# Coverage
80+
coverage/
81+
*.lcov
82+
83+
# Temporary files
84+
*.tmp
85+
*.temp
86+
*.bak
87+
*.swp
88+
*~
89+
90+
# OS generated files
91+
.DS_Store
92+
.DS_Store?
93+
._*
94+
.Spotlight-V100
95+
.Trashes
96+
ehthumbs.db
97+
Thumbs.db

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"vercel": "^41.7.8"
4+
}
5+
}

web/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<base href="$FLUTTER_BASE_HREF">
4+
<base href="/akbaymed/">
55

66
<meta charset="UTF-8">
77
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
@@ -42,5 +42,8 @@
4242
});
4343
});
4444
</script>
45+
<noscript>
46+
You need to enable JavaScript to run this app.
47+
</noscript>
4548
</body>
4649
</html>

0 commit comments

Comments
 (0)