From 1e4afcf07fa00b9c87cbcf65c578953f4c898ece Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 10 Nov 2024 17:26:58 +0800 Subject: [PATCH] :hammer: Add github workflow --- .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..0fd2ccd --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,41 @@ +name: release-nightly + +on: + push: + branches: [master] + +jobs: + build-web: + runs-on: ubuntu-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 web --release --base-href=/ + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output-web + path: build/web + 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 windows + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output-windows + path: build/windows/x64/runner/Release \ No newline at end of file