Update web-client.yml #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Web Client | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Prepare Environment | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 clang cmake ninja-build pkg-config libgtk-3-dev | ||
cd flutter/web/js && npm install ts-proto && npm install [email protected] && npm install yarn -g && npm install typescript -g && npm install protoc -g && yarn build | ||
sudo git clone https://github.com/flutter/flutter.git /usr/local/flutter | ||
- name: Build | ||
run: | | ||
export PATH=/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$PATH | ||
cd flutter && flutter doctor | ||
flutter channel master | ||
flutter config --enable-web | ||
flutter build web | ||
tar -czf ../web.tar.gz flutter/build/web | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: web.tar.gz | ||
path: web.tar.gz | ||