-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1 KB
/
gallery.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
42
43
44
45
46
47
48
49
50
name: Gallery CI/CD
on:
workflow_dispatch:
push:
branches: [ main ]
defaults:
run:
shell: bash
working-directory: ui/example
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1.5.3
with:
channel: beta
- run: flutter pub get
- run: flutter build web
- name: Upload build artifact
uses: actions/upload-artifact@v1
with:
name: web-build
path: ./ui/example/build/web
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: web-build
path: web-build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: web-build