-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 978 Bytes
/
web.yml
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
name: Web
on:
push:
branches: ["*"]
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/windows.yml'
- 'android/**'
- 'ios/**'
- 'linux/**'
- 'macos/**'
- 'windows/**'
- '.gitignore'
- '.gitmodules'
- 'README.md'
- 'LICENSE'
concurrency:
group: deploy
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v3
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install wrangler
run: npm install wrangler -g
- name: Build web
run: flutter build web
- name: Upload
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
run: wrangler pages deploy build/web --project-name=ehf --branch=dev