Ris*_*dey 10 heroku github-actions
我在 heroku 上创建了一个应用程序,同时向 github 进行身份验证,它说
Error: remote was closed, authorization was denied, or an authentication message otherwise not received before the window closed..
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
小智 9
我在 Google Chrome 中也遇到了同样的错误。
错误:远程已关闭,授权被拒绝,或者在窗口关闭之前未收到身份验证消息。
我尝试在 Chrome 的隐身模式下打开,它对我有用。
我再次尝试使用 Firefox,它也成功了!
我猜它是为了在 Heroku 上推送应用程序,所以如果你可以使用 GitHub 市场上的操作来执行此操作:你有这个: heroku deploy
您必须先在存储库设置的 Secret 中设置 heroku 密钥,然后设置工作流程,如下所示:
name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.0.4 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "YOUR APP's NAME" #Must be unique in Heroku
heroku_email: "YOUR EMAIL"
buildpack: "SOME BUILDPACK" #OPTIONAL
branch: "YOUR_BRANCH" #OPTIONAL and DEFAULT - 'HEAD' (a.k.a your current branch)
dontuseforce: false #OPTIONAL and DEFAULT - false
usedocker: false #OPTIONAL and DEFAULT - false
appdir: "" #OPTIONAL and DEFAULT - "". This is useful if the api you're deploying is in a subfolder
Run Code Online (Sandbox Code Playgroud)
我希望它有帮助。
| 归档时间: |
|
| 查看次数: |
10745 次 |
| 最近记录: |