🔨 Add github action

This commit is contained in:
LittleSheep 2024-07-16 20:33:10 +08:00
parent da265da61d
commit 9f3485a2a8

41
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: release-nightly
on:
push:
branches: [ master ]
jobs:
build-web:
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
build-apk:
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 apk --split-per-abi
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
- run: flutter build window