forked from fluttercommunity/backdrop
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (26 loc) · 867 Bytes
/
cd.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
name: cd
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
deploy-demo:
name: "Deploy demo app"
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v2
- name: "Install Flutter"
uses: subosito/flutter-action@v1
- name: "Build demo app for web"
working-directory: demo/
run: flutter build web --release
- name: "Deploy demo app to Github Pages"
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: demo/build/web # The folder the action should deploy.
TARGET_FOLDER: demo/ # Target folder within gh-pages branch
CLEAN: true # Automatically remove deleted files from the deploy branch