-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.15 KB
/
deploy_example_web.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
- name: 🛫 Deploy the website to GH Pages
uses: s0/[email protected]
env:
REPO: self
BRANCH: gh-pages
FOLDER: packages/world_countries/example/build/web
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}