Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyaocz committed Feb 27, 2023
1 parent b9985a9 commit 26a6575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish_app_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Flutter action
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.1'
flutter-version: '3.7.5'
cache: true
#更新Flutter的packages
- name: Restore packages
Expand All @@ -48,14 +48,16 @@ jobs:
- name: Build APK
run: |
cd simple_live_app
flutter build apk --release
flutter build apk --release --split-per-abi
#上传APK至Artifacts
- name: Upload APK to Artifacts
uses: actions/upload-artifact@v3
with:
name: app-release.apk
path: |
simple_live_app/build/app/outputs/flutter-apk/app-release.apk
simple_live_app/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
simple_live_app/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
simple_live_app/build/app/outputs/flutter-apk/app-x86_64-release.apk
#打包iOS
- name: Build IPA
run: |
Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "simple_live_app/build/app/outputs/flutter-apk/app-release.apk,simple_live_app/build/ios/iphoneos/ios_no_sign.ipa"
artifacts: "simple_live_app/build/app/outputs/flutter-apk/app-x86_64-release.apk,simple_live_app/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk,simple_live_app/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk,simple_live_app/build/ios/iphoneos/ios_no_sign.ipa"
name: "${{ fromJson(steps.version.outputs.content).version }}"
body: "${{ fromJson(steps.version.outputs.content).version_desc }}"
token: ${{ secrets.TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions assets/app_version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.0.0",
"version": "1.0.0-test",
"version_num": 10000,
"version_desc": "首个版本",
"version_desc": "测试版本",
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases"
}

0 comments on commit 26a6575

Please sign in to comment.