Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Github操作连续部署到Heroku_Git_Heroku_Continuous Deployment_Github Actions - Fatal编程技术网

使用Github操作连续部署到Heroku

使用Github操作连续部署到Heroku,git,heroku,continuous-deployment,github-actions,Git,Heroku,Continuous Deployment,Github Actions,我正在使用以下yaml文件在dist目录中构建我的工件,并推送到Heroku name:构建和部署 关于: 推送: 分支机构: -主人 工作: 构建和部署: 运行于:ubuntu最新版本 步骤: -名称:安装SSH客户端 用法:webfactory/ssh-agent@v0.2.0 与: ssh私钥:${secrets.DEPLOY_key} -姓名:结帐 用途:行动/checkout@master -名称:安装节点 用途:操作/设置-node@master 与: 节点版本:“14.x” -名称

我正在使用以下yaml文件在
dist
目录中构建我的工件,并推送到Heroku

name:构建和部署
关于:
推送:
分支机构:
-主人
工作:
构建和部署:
运行于:ubuntu最新版本
步骤:
-名称:安装SSH客户端
用法:webfactory/ssh-agent@v0.2.0
与:
ssh私钥:${secrets.DEPLOY_key}
-姓名:结帐
用途:行动/checkout@master
-名称:安装节点
用途:操作/设置-node@master
与:
节点版本:“14.x”
-名称:为生产而构建
运行:生成
-名称:Heroku Git初始化
环境:
HEROKU_API_密钥:${{secrets.HEROKU_API_密钥}
run:cd dist&&git init&&heroku git:remote-a${{secrets.heroku\u APP\u NAME}
-名称:Heroku Git配置
环境:
HEROKU_API_密钥:${{secrets.HEROKU_API_密钥}
运行:cd dist&&git config user.email“MY-email”和&git config user.name“MY name”
-姓名:Heroku Deploy
环境:
HEROKU_API_密钥:${{secrets.HEROKU_API_密钥}
运行:cd区和git添加git提交-m“+1”&&git-push-heroku-master-force
但是,在最后一步中,我得到了以下错误
git-push-heroku-master-force

fatal: could not read Username for 'https://git.heroku.com': No such device or address
Error: Process completed with exit code 128.

如何解决此问题?

git push命令通过
stdin
请求用户名。环境变量似乎不够。环境变量似乎有问题