github - 使用 github 操作自动化颤振工作流程
问题描述
我有一个颤振项目,正在尝试使用 github 操作实现自动化。我想在创建新标签并将 apk 保存到其中后立即创建 apk。有人能帮我吗?
on : push
name: build and test app
jobs:
build:
name: install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install dependencies
uses: steebchen/flutter@v1.0.0
with:
args: pub get
# - name: run tests
# uses: steebchen/flutter@v1.0.0
# with:
# args: test
- name: build apk
uses: steebchen/flutter@v1.0.0
with:
args: build apk --release
#- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: app-release.apk
path: build/app/outputs/apk/release/
- run: cat build/app/outputs/apk/release/
我可以构建它,但我无法下载工件
解决方案
要使用 --release 必须在 android 上设置密钥存储和signingConfigs。那做完了吗?我已经使用 Actions 和 kind-of-work 设置了应用程序(它失败了,因为应用程序正在使用颤振开发通道并且操作的图像使用稳定)。
首先尝试使用'build apk --debug'
另外,使用 ls 查看目录:
- run: ls android/build/app/outputs/apk/release/
推荐阅读
- powerbi - 如何仅选择每个表格视觉对象中的一项
- mysql - 将特定列存储和检索到包含存储过程中单行的结果集的变量中
- java - 为什么我在控制器中收到来自邮递员请求的空值?
- android - 如何将带有invokeMethod的字符串数组从Native传递到flutter
- node.js - 通过 npm start 运行时访问被拒绝,但运行 `node www.js` 时一切正常
- reactjs - Normalizr :如果 id 存在,则仅将项目添加到项目数组
- c++ - 请解释为什么这个简单的 C++(Qt) 代码如此奇怪
- docker - 容器重启后 Cron 不启动
- c# - 我不能大摇大摆地在 https 上运行
- sql - 按 Rowid 问题索引