2023-07-11 20:51:53 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- master
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
name: "Build & Release"
|
|
|
|
jobs:
|
2023-07-11 21:36:28 +00:00
|
|
|
build-and-release-windows:
|
2023-07-11 21:33:08 +00:00
|
|
|
name: Build Windows App
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
flutter-version: '3.10.5'
|
|
|
|
- name: Install project dependencies
|
|
|
|
run: flutter pub get
|
|
|
|
- name: Build artifacts
|
|
|
|
run: flutter build windows --release
|
|
|
|
- name: Archive Release
|
|
|
|
uses: thedoctor0/zip-release@master
|
|
|
|
with:
|
|
|
|
type: 'zip'
|
|
|
|
filename: TetraStats-${{github.ref_name}}-windows.zip
|
|
|
|
directory: build/windows/runner/Release
|
|
|
|
- name: Push to Releases
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
prerelease: true
|
|
|
|
discussionCategory: autobuilded-releases
|
|
|
|
artifacts: "build/windows/runner/Release/TetraStats-${{github.ref_name}}-windows.zip"
|
2023-07-11 21:53:37 +00:00
|
|
|
tag: Auto ${{ github.run_number }}
|
2023-07-11 21:33:08 +00:00
|
|
|
body: This build was builded with GitHub Action workflow
|
|
|
|
token: ${{ secrets.TOKEN }}
|
2023-07-11 21:36:28 +00:00
|
|
|
build-and-release-android:
|
2023-07-11 21:33:08 +00:00
|
|
|
name: Build Android App
|
|
|
|
runs-on: ubuntu-latest
|
2023-07-11 20:51:53 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: '12.x'
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2023-07-11 20:57:29 +00:00
|
|
|
flutter-version: '3.10.5'
|
2023-07-11 20:51:53 +00:00
|
|
|
- run: flutter pub get
|
2023-07-11 21:33:08 +00:00
|
|
|
# - run: flutter test // lmao. Tests? Who needs it?
|
2023-07-11 20:51:53 +00:00
|
|
|
- run: flutter build apk --split-per-abi
|
|
|
|
- name: Push to Releases
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
prerelease: true
|
2023-07-11 21:33:08 +00:00
|
|
|
# discussionCategory: autobuilded-releases
|
|
|
|
artifacts: "build/app/outputs/apk/debug/*"
|
2023-07-11 21:53:37 +00:00
|
|
|
tag: Auto ${{ github.run_number }}
|
2023-07-11 20:51:53 +00:00
|
|
|
body: This build was builded with GitHub Action workflow
|
|
|
|
token: ${{ secrets.TOKEN }}
|