mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update and rename deploy.yml to web.yml
This commit is contained in:
36
.github/workflows/web.yml
vendored
Normal file
36
.github/workflows/web.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user