Skip to content

Commit 28d1893

Browse files
authored
Merge pull request #15 from CookethOrg/dev
new deployment
2 parents 15d3635 + 8cc8236 commit 28d1893

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/deploy_web.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ on:
77
pull_request:
88
branches:
99
- master
10+
types:
11+
- closed
1012

1113
permissions:
1214
contents: write
1315

1416
jobs:
1517
build-and-deploy:
18+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1619
runs-on: ubuntu-latest
1720

1821
steps:
@@ -34,8 +37,16 @@ jobs:
3437
- name: Install dependencies
3538
run: flutter pub get
3639

40+
- name: Debug environment variables
41+
run: |
42+
echo "SUPABASE_URL is set: ${{ secrets.SUPABASE_URL != '' }}"
43+
echo "SUPABASE_KEY is set: ${{ secrets.SUPABASE_KEY != '' }}"
44+
env:
45+
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
46+
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
47+
3748
- name: Build web
38-
run: flutter build web --release --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"
49+
run: flutter build web --release --no-source-maps --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"
3950

4051
- name: Debug build output
4152
run: |

lib/core/widgets/drawers/dashboard_drawer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class DashboardDrawer extends StatelessWidget {
141141
),
142142
),
143143
const SizedBox(height: 40),
144-
ThemeToggle(),
145-
SizedBox(height: 16,),
144+
// ThemeToggle(),
145+
// SizedBox(height: 16,),
146146
Padding(
147147
padding: const EdgeInsets.symmetric(horizontal: 20),
148148
child: TextButton.icon(

0 commit comments

Comments
 (0)