chore: update .gitignore, add devtools_options.yaml, and refactor iOS… #42
This file contains hidden or 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
| 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 |