Skip to content

Commit

Permalink
Add Github Action CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysab committed Jan 31, 2022
1 parent cd470d0 commit ad6774f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Flutter Web CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: 2.8.1
channel: stable
cache: true
cache-key: flutter # optional, change this to force refresh cache
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path
- run: flutter --version

- run: flutter pub get
- run: flutter pub run build_runner build
- run: flutter pub run flutter_native_splash:create
- run: flutter build web --web-renderer=html --base-href=/fu/ --no-source-maps --no-null-assertions --no-native-null-assertions --release

- name: Copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_SECRET }}
source: "build/web"
target: "/var/kite/web/fu/"

0 comments on commit ad6774f

Please sign in to comment.