Command line Firebase应用程序分发Gradle/CLI在GitHub操作中不工作
在GitHub操作中,Gradle或CLI这两个选项都不适用于firebase应用程序发行版,对于Gradle,它给出了错误“无法检测我们是否在google compute engine上运行”,屏幕截图中提供了错误。Command line Firebase应用程序分发Gradle/CLI在GitHub操作中不工作,command-line,continuous-integration,github-actions,firebase-cli,Command Line,Continuous Integration,Github Actions,Firebase Cli,在GitHub操作中,Gradle或CLI这两个选项都不适用于firebase应用程序发行版,对于Gradle,它给出了错误“无法检测我们是否在google compute engine上运行”,屏幕截图中提供了错误。 这解决了我的问题,这是将FIREBASE_令牌设置为环境变量的问题 name: FIREBASE APP DISTRIBUTION on: repository_dispatch: types: UPLOAD APP TO FIREBASE jobs: bui
这解决了我的问题,这是将FIREBASE_令牌设置为环境变量的问题
name: FIREBASE APP DISTRIBUTION
on:
repository_dispatch:
types: UPLOAD APP TO FIREBASE
jobs:
build:
env:
FIREBASE_TOKEN: *****************************************
runs-on: ubuntu-latest
steps:
- name: Checkout Branch ${{ github.event.client_payload.branch }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Preparing Gradle Executable
run: chmod +x ./gradlew
- name: Building apk for ${{ github.event.client_payload.build_variant }}
run: ./gradlew assemble${{ github.event.client_payload.build_variant }} appDistributionUpload${{ github.event.client_payload.build_variant }} -PvName="${{ github.event.client_payload.version_name }}"
在Rishi的基础上,可能值得将环境变量设置移动到工作流级别,以便环境配置可以在不同的作业之间共享:
name: FIREBASE APP DISTRIBUTION
on:
repository_dispatch:
types: UPLOAD APP TO FIREBASE
env:
FIREBASE_TOKEN: *****************************************
jobs:
build:
我也面临着类似的问题,你找到解决办法了吗?我收到400个错误。@您可能希望将FIREBASE_令牌设置为环境变量,如我在下面的帖子中所述。您还可以在触发操作中将令牌作为参数发送。谢谢