TetraStats/.github/workflows/main.yml

43 lines
1.1 KiB
YAML

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: '3.10.5'
- 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 }}