optimize service coe #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Dart | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# 创建 java 环境 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
token: ${{ secrets.ACTION_TOKENS }} | |
# 创建 Flutter 环境 | |
- name: Flutter action | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.13.1" | |
channel: "stable" | |
# 下载项目依赖 | |
- run: flutter pub get | |
- run: flutter build apk --target-platform=android-arm64 | |
# 发布到 Release | |
- name: Release apk | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "build/app/outputs/apk/release/*.apk" | |
token: ${{ secrets.ACTION_TOKENS}} |