chore(deps): bump mocktail from 1.0.3 to 1.0.4 #118
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
name: "Deploy Web App to Github Pages" | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v4 | |
- name: π€« Set API Keys | |
run: echo $API_KEYS_JSON | base64 -d > api-keys.json | |
env: | |
API_KEYS_JSON: ${{ secrets.API_KEYS_JSON }} | |
- name: π¦ Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
channel: stable | |
- name: π¦ Install Dependencies | |
run: | | |
flutter pub get | |
- name: βοΈ Run Code Generation | |
run: | | |
flutter pub run build_runner build --delete-conflicting-outputs | |
- name: π Enable Web | |
run: | | |
flutter config --enable-web | |
- name: π οΈ Build Web | |
run: flutter build web --release -t lib/main.dart --dart-define-from-file api-keys.json | |
- name: π€ Configure Github Actions | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: π Extract Web Build | |
run: | | |
git --work-tree build/web add --all | |
git add .well-known --all | |
git add _config.yml | |
- name: π Push to gh-pages | |
run: | | |
git commit -m "Automatic deployment by github-actions" | |
git push origin HEAD:gh-pages --force |