Update and rename deploy.yml to web.yml

This commit is contained in:
2023-09-08 12:07:48 +08:00
committed by GitHub
parent 46beb33f3a
commit dbe570034a

36
.github/workflows/web.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Web
on:
push:
branches: [master]
paths-ignore:
- '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