首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能部署到Github页面-使用GitHub操作的Blazor组件

未能部署到Github页面-使用GitHub操作的Blazor组件
EN

Stack Overflow用户
提问于 2020-07-04 21:25:14
回答 1查看 1.3K关注 0票数 2

我想我已经遵循了所有步骤,使用我从GitHub中找到的GitHub操作在https://www.davideguida.com/how-to-deploy-blazor-webassembly-on-github-pages-using-github-actions/页面上部署Blazor组件

但在Deploy to Github Pages步骤中失败了

(Passed)

  • Publish

  • 设置作业(已传递)

  • 运行操作/签出@v2(已传递)

  • Setup .NET Core

  • with dotnet (Passed)

  • Deploy to Github (Failed)

  • Post Run actions/checkout@v2 (Passed)

  • Complete作业(已传递)

以下是错误描述

代码语言:javascript
复制
    ❓ FAQ/Wiki: https://github.com/JamesIves/github-pages-deploy-action/wiki
     Support: https://github.com/JamesIves/github-pages-deploy-action/issues
    ⭐ Contribute: https://github.com/JamesIves/github-pages-deploy-action/blob/dev/CONTRIBUTING.md
    
    Maintained by James Ives (https://jamesiv.es)
Checking configuration and starting deployment… 
Deploying using …… 
Configuring git…
/usr/bin/git init
Reinitialized existing Git repository in /home/runner/work/FirstBlazor/FirstBlazor/.git/
/usr/bin/git config user.name ngaisteve1
/usr/bin/git config user.email xxx@gmail.com
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.com/ngaisteve1/FirstBlazor.git
/usr/bin/git fetch --no-recurse-submodules
From https://github.com/ngaisteve1/FirstBlazor
 * [new branch]      master     -> origin/master
Git configured… 
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.com/ngaisteve1/FirstBlazor.git master | wc -l
136e7850750d3861e72a15355289952f94777c9b    refs/heads/master
/usr/bin/git checkout --progress --force development
error: pathspec 'development' did not match any file(s) known to git
Running post deployment cleanup jobs… ️
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
fatal: 'github-pages-deploy-action-temp-deployment-folder' is not a working tree
##[error]The process '/usr/bin/git' failed with exit code 128
Deployment failed! ❌

这是我的github回购- https://github.com/ngaisteve1/FirstBlazor

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-05 18:20:20

您需要从development分支创建一个名为master的分支,并在存储库设置中将development分支设置为default分支。

这是因为您的gh-pages.yml文件有BASE_BRANCH: developmentBRANCH: master

代码语言:javascript
复制
with:
    ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
    BASE_BRANCH: development # The branch the action should deploy from.
    BRANCH: master # The branch the action should deploy to.
    FOLDER: build/wwwroot # The folder the action should deploy.
    SINGLE_COMMIT: true

因此,部署将从development分支发生到master分支。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62734631

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档