【问题标题】:how to set a github token for github pages deploy如何为 github 页面部署设置 github 令牌
【发布时间】:2021-10-19 11:21:31
【问题描述】:

直到几天前,我还在 Github 页面上部署我的 html: ng deploy --base-href=/documentation/

今天我收到此错误:“远程:对密码身份验证的支持已于 2021 年 8 月 13 日删除。请改用个人访问令牌。 远程:请参阅https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ 了解更多信息。 致命:无法访问“https://github.com/BioComputingUP/ProSeqViewer-documentation.git/”:请求的 URL 返回错误:403”

我在我的 github 设置中设置了一个令牌,但我不明白如何使用它来部署我的页面。这应该怎么做?

【问题讨论】:

    标签: authentication deployment angular-cli token github-pages


    【解决方案1】:

    我发现了两种方法:

    1. 在 IDE 提示要求输入密码时使用令牌。我已经对此进行了测试,它可以工作。
    2. 设置键。 (我没有测试过)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-20
      • 2023-02-24
      • 2021-02-09
      • 2013-02-19
      • 2020-08-10
      • 2022-11-19
      • 2018-08-07
      相关资源
      最近更新 更多