我创建了 GitHub 操作来运行以在 macOS 上构建 apk。但它警告我 Artifact pattern :build/app/outputs/apk/release/*.apk 不匹配任何文件。这是一个公共回购,有人可以在这里帮助我。在官方文档中它说相同的路径,并且我可以在本地成功构建 apk(在 Windows 机器上)。我使用 MacOS 生成 iOs 应用程序,我稍后会做。
回购链接。 magento-移动-oss
工作流程——
name: Magento Mobile
on:
push:
branches: [ oss ]
pull_request:
branches: [ oss ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: stable
env:
KEY_JKS: ${{ secrets.KEY_JKS }}
KEY_PASSWORD: ${{ secrets.ALIAS_PASSWORD }}
ALIAS_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: echo $KEY_JKS > key.jks && flutter pub get && flutter test && flutter build apk --split-per-abi --verbose
- name: Create a Release APK
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*.apk"
token: ${{ secrets.OSS_TOKEN }}
commit: oss
tag: v1.0.${{ github.run_number }}