chore(deps): bump com.android.tools.build:gradle from 8.1.2 to 8.1.3 … #49
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 | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "packages/world_countries/**" | |
- ".github/workflows/world_countries.yaml" | |
- ".github/workflows/deploy_example_web.yaml" | |
jobs: | |
deploy: | |
name: 🚀 Deploy example website | |
runs-on: ubuntu-latest | |
timeout-minutes: 24 | |
steps: | |
- name: 📚 Git checkout | |
uses: actions/[email protected] | |
- name: 🐦 Setup Flutter | |
uses: subosito/[email protected] | |
with: | |
cache: true | |
channel: "master" | |
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" | |
- name: 📦 Install dependencies | |
working-directory: packages/world_countries/example | |
run: flutter pub get | |
- name: 🛠️ Build for web | |
working-directory: packages/world_countries/example | |
run: flutter build web --release --base-href=/sealed_world/ --wasm --omit-type-checks --wasm-opt full | |
- name: 🗑️ Remove unnecessary assets | |
working-directory: packages/world_countries/example/build/web_wasm | |
run: rm -rf assets/packages && rm -rf assets/assets | |
- name: 🛫 Deploy website to GH Pages | |
uses: s0/[email protected] | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: packages/world_countries/example/build/web_wasm | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |