Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/deploy_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ on:
pull_request:
branches:
- master
types:
- closed

permissions:
contents: write

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

steps:
Expand All @@ -34,8 +37,16 @@ jobs:
- name: Install dependencies
run: flutter pub get

- name: Debug environment variables
run: |
echo "SUPABASE_URL is set: ${{ secrets.SUPABASE_URL != '' }}"
echo "SUPABASE_KEY is set: ${{ secrets.SUPABASE_KEY != '' }}"
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}

- name: Build web
run: flutter build web --release --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"
run: flutter build web --release --no-source-maps --dart-define="SUPABASE_URL=${{ secrets.SUPABASE_URL }}" --dart-define="SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}"

- name: Debug build output
run: |
Expand Down
4 changes: 2 additions & 2 deletions lib/core/widgets/drawers/dashboard_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class DashboardDrawer extends StatelessWidget {
),
),
const SizedBox(height: 40),
ThemeToggle(),
SizedBox(height: 16,),
// ThemeToggle(),
// SizedBox(height: 16,),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: TextButton.icon(
Expand Down