-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 969 Bytes
/
deploy-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
40
name: Deploy Web
on:
# pull:
# branches: [main]
workflow_dispatch:
jobs:
Deploy-Web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
# Build Web
- run: flutter build web
- uses: actions/upload-artifact@v2
with:
name: vTablet_client_web
path: client/build/web
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 5b730025d7878dcd418287d4e2b66d8e
projectName: vtablet-app
directory: client/build/web
gitHubToken: ${{ secrets.GITHUB_TOKEN }}