parent
11366df5c2
commit
543055c304
|
@ -0,0 +1,43 @@
|
|||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
name: "Build & Release"
|
||||
jobs:
|
||||
build:
|
||||
name: Build & Release
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '12.x'
|
||||
- uses: subosito/flutter-action@v1
|
||||
with:
|
||||
flutter-version: '2.2.0'
|
||||
- run: flutter pub get
|
||||
- run: flutter test
|
||||
- run: flutter build apk --split-per-abi
|
||||
- run: |
|
||||
flutter build ios --no-codesign
|
||||
cd build/ios/iphoneos
|
||||
mkdir Payload
|
||||
cd Payload
|
||||
ln -s ../Runner.app
|
||||
cd ..
|
||||
zip -r app.ipa Payload
|
||||
- name: Push to Releases
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
prerelease: true
|
||||
discussionCategory: autobuilded-releases
|
||||
artifacts: "build/app/outputs/apk/debug/*,build/ios/iphoneos/app.ipa"
|
||||
tag: Automated build №${{ github.run_number }}
|
||||
body: This build was builded with GitHub Action workflow
|
||||
token: ${{ secrets.TOKEN }}
|
|
@ -120,7 +120,7 @@ class CompareState extends State<CompareView> {
|
|||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(SnackBar(content: Text("Falied to assign $user")));
|
||||
}
|
||||
setState(() {});
|
||||
_justUpdate();
|
||||
}
|
||||
|
||||
void changeRedSide(TetrioPlayer user) {
|
||||
|
@ -195,7 +195,7 @@ class CompareState extends State<CompareView> {
|
|||
ScaffoldMessenger.of(context)
|
||||
.showSnackBar(SnackBar(content: Text("Falied to assign $user")));
|
||||
}
|
||||
setState(() {});
|
||||
_justUpdate();
|
||||
}
|
||||
|
||||
void changeGreenSide(TetrioPlayer user) {
|
||||
|
|
Loading…
Reference in New Issue