fix cicd #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 下载 CLI 并构建 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
prepare_and_build: | |
runs-on: ubuntu-latest # 你可以选择适当的运行环境 | |
container: | |
image: dangodx/android-ci:v1.0 | |
steps: | |
# 在需要的步骤中设置 Node.js 版本 | |
- name: 设置 Node.js 版本 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 设置环境 | |
run: export GRADLE_USER_HOME=$(pwd)/.gradle | |
- name: 检出代码 | |
uses: actions/checkout@v2 | |
- name: 下载 CLI | |
env: | |
ARTIFACT_LOCATION: https://nexus.xmxdev.com/ | |
run: | | |
echo "GitHub Actions | 打印所有环境变量" | |
env | |
echo "${ARTIFACT_LOCATION}" | |