2024-07-16 12:33:10 +00:00
|
|
|
name: release-nightly
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-07-16 12:44:13 +00:00
|
|
|
branches: [master]
|
2024-07-16 12:33:10 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-web:
|
2024-07-16 12:34:47 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-07-16 12:33:10 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
|
|
|
channel: stable
|
|
|
|
cache: true
|
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter build web
|
2024-07-16 12:44:13 +00:00
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: build-output-web
|
|
|
|
path: build/web
|
2024-07-16 12:33:10 +00:00
|
|
|
build-apk:
|
2024-07-16 12:34:47 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-07-16 12:33:10 +00:00
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
|
|
|
channel: stable
|
|
|
|
cache: true
|
2024-07-16 12:48:52 +00:00
|
|
|
- uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
distribution: "zulu"
|
|
|
|
java-version: "17"
|
2024-07-16 12:33:10 +00:00
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter build apk --split-per-abi
|
2024-07-16 12:44:13 +00:00
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: build-output-android
|
|
|
|
path: build/app/outputs/flutter-apk/*.apk
|
2024-07-16 12:33:10 +00:00
|
|
|
build-exe:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
|
|
|
channel: stable
|
|
|
|
cache: true
|
|
|
|
- run: flutter pub get
|
2024-07-16 12:44:13 +00:00
|
|
|
- run: flutter build windows
|
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: build-output-windows
|
|
|
|
path: build/windows
|