mirror of
https://github.com/asjqkkkk/flutter-todos.git
synced 2025-08-06 14:19:24 +08:00
🔨: CI for realease apk
This commit is contained in:
18
.github/workflows/dart.yml
vendored
18
.github/workflows/dart.yml
vendored
@ -2,9 +2,12 @@ name: Flutter CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags:
|
||||||
|
- *
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- master
|
- master
|
||||||
|
- ci_test
|
||||||
# - action_test
|
# - action_test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -26,12 +29,11 @@ jobs:
|
|||||||
- run: flutter packages get
|
- run: flutter packages get
|
||||||
- run: flutter test
|
- run: flutter test
|
||||||
- run: flutter build apk --target-platform android-arm --split-per-abi
|
- run: flutter build apk --target-platform android-arm --split-per-abi
|
||||||
- run: ls
|
# - run: ls
|
||||||
- run: mv build/app/outputs/apk/release/app-armeabi-v7a-release.apk build/app-armeabi-v7a-release.apk
|
# - run: mv build/app/outputs/apk/release/app-armeabi-v7a-release.apk build/app-armeabi-v7a-release.apk
|
||||||
# - uses: skx/github-action-publish-binaries@master
|
- name: Release apk
|
||||||
# env:
|
uses: ncipollo/release-action@v1.5.0
|
||||||
# GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
|
with:
|
||||||
# with:
|
artifacts: "build/app/outputs/apk/release/*.apk"
|
||||||
# args: 'build/app-armeabi-v7a-release.apk'
|
token: ${{ secrets.GITHUB_RElEASE_TOKEN }}
|
||||||
|
|
||||||
# - run: curl -F "key=file" -F "filename=@build/app-armeabi-v7a-release.apk" -D '{"account":"app","year":"2019","month":"3"}' http://111.230.251.115/oldchen/file/upload
|
|
||||||
|
Reference in New Issue
Block a user