Skip to content

chore: update .gitignore, add devtools_options.yaml, and refactor iOS… #42

chore: update .gitignore, add devtools_options.yaml, and refactor iOS…

chore: update .gitignore, add devtools_options.yaml, and refactor iOS… #42

on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
- develop
name: "Build & Release"
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- name: Build Web Project
run: flutter build web --release --base-href /flutter_animated_login/
working-directory: ./example
- name: Fix PWA
run: sed -i'.js' -e 's+"/"+""+g' flutter_service_worker.js #https://github.com/flutter/flutter/issues/68449
working-directory: ./example/build/web
- name: Deploy web To GH-Page
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_branch: gh-pages
publish_dir: ./example/build/web