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'
|
2023-12-26 22:55:51 +00:00
|
|
|
flutter-version: '3.16.5'
|
2023-07-11 21:33:08 +00:00
|
|
|
- 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
|
2024-01-01 21:43:12 +00:00
|
|
|
directory: build/windows/x64/runner/Release
|
2023-07-11 21:33:08 +00:00
|
|
|
- name: Push to Releases
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
prerelease: true
|
2023-07-11 22:12:05 +00:00
|
|
|
allowUpdates: true
|
2023-07-12 15:32:32 +00:00
|
|
|
replacesArtifacts: false
|
2023-07-11 21:33:08 +00:00
|
|
|
discussionCategory: autobuilded-releases
|
2024-01-01 21:43:12 +00:00
|
|
|
artifacts: "build/windows/x64/runner/Release/TetraStats-${{github.ref_name}}-windows.zip"
|
|
|
|
tag: Auto-${{ github.run_number }}
|
|
|
|
body: Builded with GitHub Action workflow
|
|
|
|
token: ${{ secrets.TOKEN }}
|
|
|
|
build-and-release-linux:
|
|
|
|
name: Build Linux App
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: subosito/flutter-action@v1
|
2024-01-01 22:39:10 +00:00
|
|
|
- uses: ashutoshvarma/setup-ninja@master
|
2024-01-01 21:43:12 +00:00
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
flutter-version: '3.16.5'
|
|
|
|
- name: Install project dependencies
|
|
|
|
run: flutter pub get
|
|
|
|
- name: Build artifacts
|
2024-01-01 22:08:36 +00:00
|
|
|
env:
|
2024-01-01 22:11:25 +00:00
|
|
|
CMAKE_MAKE_PROGRAM: Ninja
|
2024-01-01 21:46:45 +00:00
|
|
|
run: flutter build linux --release
|
2024-01-01 21:43:12 +00:00
|
|
|
- name: Archive Release
|
|
|
|
uses: thedoctor0/zip-release@master
|
|
|
|
with:
|
|
|
|
type: 'zip'
|
|
|
|
filename: TetraStats-${{github.ref_name}}-windows.zip
|
|
|
|
directory: build/linux/x64/runner/Release/bundle
|
|
|
|
- name: Push to Releases
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
prerelease: true
|
|
|
|
allowUpdates: true
|
|
|
|
replacesArtifacts: false
|
|
|
|
discussionCategory: autobuilded-releases
|
|
|
|
artifacts: "build/linux/x64/runner/Release/bundle/TetraStats-${{github.ref_name}}-linux.zip"
|
2023-07-11 22:03:10 +00:00
|
|
|
tag: Auto-${{ github.run_number }}
|
2023-07-20 20:56:00 +00:00
|
|
|
body: Builded with GitHub Action workflow
|
2023-07-11 21:33:08 +00:00
|
|
|
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-12-26 22:55:51 +00:00
|
|
|
flutter-version: '3.16.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 22:12:05 +00:00
|
|
|
allowUpdates: true
|
2023-07-12 15:32:32 +00:00
|
|
|
replacesArtifacts: false
|
2023-07-11 22:12:05 +00:00
|
|
|
discussionCategory: autobuilded-releases
|
2023-07-12 15:43:10 +00:00
|
|
|
artifacts: "build/app/outputs/flutter-apk/*"
|
2023-07-11 22:03:10 +00:00
|
|
|
tag: Auto-${{ github.run_number }}
|
2023-07-20 20:56:00 +00:00
|
|
|
body: Builded with GitHub Action workflow
|
2023-07-11 20:51:53 +00:00
|
|
|
token: ${{ secrets.TOKEN }}
|