Skip to content

Commit

Permalink
Use dart define
Browse files Browse the repository at this point in the history
  • Loading branch information
Nailsonseat committed Jun 11, 2024
1 parent 8339e2c commit 1f8727e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v1


- name: Set up .env file
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
run: |
echo GEMINI_API_KEY=$GEMINI_API_KEY > .env
- name: Display GEMINI_API_KEY from secrets
run: echo ${{ secrets.GEMINI_API_KEY }}

- name: Display GEMINI_API_KEY from .env file
run: cat .env

- name: Deploy to GitHub Pages
uses: bluefireteam/flutter-gh-pages@v7
with:
baseHref: /Portfolio_Website/
buildDir: build/web

- name: Build Flutter web with Dart defines
run: --dart-define GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}

0 comments on commit 1f8727e

Please sign in to comment.