GitHub Actions new workflow

plus some shit
This commit is contained in:
dan63047 2023-07-11 23:51:53 +03:00
parent 11366df5c2
commit 543055c304
2 changed files with 45 additions and 2 deletions

43
.github/workflows/main.yml vendored Normal file
View File

@ -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 }}

View File

@ -120,7 +120,7 @@ class CompareState extends State<CompareView> {
ScaffoldMessenger.of(context) ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text("Falied to assign $user"))); .showSnackBar(SnackBar(content: Text("Falied to assign $user")));
} }
setState(() {}); _justUpdate();
} }
void changeRedSide(TetrioPlayer user) { void changeRedSide(TetrioPlayer user) {
@ -195,7 +195,7 @@ class CompareState extends State<CompareView> {
ScaffoldMessenger.of(context) ScaffoldMessenger.of(context)
.showSnackBar(SnackBar(content: Text("Falied to assign $user"))); .showSnackBar(SnackBar(content: Text("Falied to assign $user")));
} }
setState(() {}); _justUpdate();
} }
void changeGreenSide(TetrioPlayer user) { void changeGreenSide(TetrioPlayer user) {