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:
|
||||
push:
|
||||
tags:
|
||||
- *
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
- ci_test
|
||||
# - action_test
|
||||
|
||||
jobs:
|
||||
@ -26,12 +29,11 @@ jobs:
|
||||
- run: flutter packages get
|
||||
- run: flutter test
|
||||
- run: flutter build apk --target-platform android-arm --split-per-abi
|
||||
- run: ls
|
||||
- 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
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
|
||||
# with:
|
||||
# args: 'build/app-armeabi-v7a-release.apk'
|
||||
# - run: ls
|
||||
# - run: mv build/app/outputs/apk/release/app-armeabi-v7a-release.apk build/app-armeabi-v7a-release.apk
|
||||
- name: Release apk
|
||||
uses: ncipollo/release-action@v1.5.0
|
||||
with:
|
||||
artifacts: "build/app/outputs/apk/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