Skip to content

💚 优化 release 不带版本号 #207

💚 优化 release 不带版本号

💚 优化 release 不带版本号 #207

Workflow file for this run

name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- develop
- master
- release/*
pull_request:
branches:
- develop
# on: push # Default will running for every branch.
jobs:
build:
# This job will run on macos virtual machine
runs-on: macos-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
#flutter-version: '1.22.x' # you can also specify exact version of flutter
# Get flutter dependencies.
- run: flutter pub get
# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: flutter analyze .
#####
# Build app
#####
# Build apk.
- run: cd example && flutter build apk
# Build ios
- run: cd example && flutter build ios --release --no-codesign