From 9f3485a2a82550a5078b77e7675a2398549ccf0a Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 16 Jul 2024 20:33:10 +0800 Subject: [PATCH] :hammer: Add github action --- .github/workflows/nightly.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..8a64f4c --- /dev/null +++ b/.github/workflows/nightly.yml @@ -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 \ No newline at end of file