feat: web deployment

This commit is contained in:
Rongjian Zhang
2020-11-14 16:59:32 +08:00
parent e41445cc8c
commit 72d4d2d2b9
6 changed files with 87 additions and 7 deletions

22
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.1.0
- uses: subosito/flutter-action@v1.1.1
with:
channel: dev
- run: |
flutter config --enable-web
flutter pub get
flutter build web
- uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./build/web/
external_repository: git-touch/git-touch.github.io