Merge pull request #212 from dherediat97/feature/redesign-views #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Film Flu Web App | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.actor == 'dherediat97' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- run: flutter clean | |
- run: flutter pub get | |
- name: Write TMDB_KEY to .env | |
run: | |
set -o noclobber | |
echo TMDB_KEY={{ secrets.TMDB_KEY }} >> .env | |
- name: Create .env | |
run: echo "TMDB_KEY=${{ secrets.TMDB_KEY }}" > .env | |
- name: Make envfile | |
uses: SpicyPizza/create-envfile@v2.0 | |
with: | |
envkey_DEBUG: false | |
envkey_TMDB_KEY: ${{ secrets.TMDB_KEY }} | |
file_name: .env | |
- run: flutter pub run build_runner build --delete-conflicting-outputs | |
- run: flutter gen-l10n | |
- uses: bluefireteam/flutter-gh-pages@v8 | |
with: | |
baseHref: /FilmFlu/ | |
targetBranch: gh-pages | |
webRenderer: html |