在通过Travis-CI部署到github版本时,我需要帮助或解释
我有.travis.yml
配置文件的一部分
jobs:
include:
- stage: publish
if: env(BRANCH_IS_TAG) != true
name: "Create Github Release"
script:
- yarn build
- bash ./prepare-publish.sh
deploy:
provider: releases
name: "Release ${PACKAGE_VERSION}"
body: "test \n test \r\n + /r/n *"
overwrite: true
skip_cleanup: true
api_key:
secure: ${GITHUB_TOKEN}
file:
- release.zip
on:
all_branches: true
repo: acacode/stonex
当我不更改此行时,配置的这一部分工作正常
body: "test \n test \r\n + /r/n *"
收件人
body: "${GIT_LOG}"
此变量是在部署prepare-publish.sh
脚本之前创建的部分
export GIT_LOG=$(git cherry -v develop)
并输出:
当我将此变量附加到身体时,Travis说我
invalid option "--body="
travis配置文件:https://raw.githubusercontent.com/acacode/stonex/internal/travis-ci-builds/.travis.yml
travis构建日志出现以下问题: https://travis-ci.org/acacode/stonex/builds/524606655#L543
包含$GIT_LOG
变量的脚本:
https://github.com/acacode/stonex/blob/internal/travis-ci-builds/prepare-publish.sh
希望有您的帮助,谢谢!