Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyian authored Feb 3, 2024
1 parent c062560 commit 9441260
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Flutter build

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.8' # 选择你的Flutter版本

- name: Get dependencies
run: flutter pub get

- name: Build for Android
run: flutter build apk --split-per-apk --release

- name: Build for web
run: flutter build web

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: |
build/app/outputs/flutter-apk/
build/web/

0 comments on commit 9441260

Please sign in to comment.