我只是想在 github 页面上发布我的 React 应用程序,所以我想将构建文件夹移动到 docs 文件夹 我正在使用 github 操作运行 react build
我的integrate.yml 看起来像这样
<ul>
<li class="nav-link" style="--i: .6s">
<a href="/home.php">Home</a>
</li>
<li class="nav-link" style="--i: .85s" >
<a href="#">Categories<i class="fas fa-caret-down"></i></a>
<div class="dropdown ">
<ul>
<li class="dropdown-link">
<a href="/pages/motivation.php">Motivation</a>
</li>
<li class="dropdown-link">
<a href="/pages/health.php">Health</a>
</li>
<li class="dropdown-link">
<a class=" href="/pages/science&tech.php">Science & Technology</a>
</li>
<li class="dropdown-link">
<a href='/pages/finance.php'>Finance</a>
</li>
<li class="dropdown-link">
<a href="/pages/random.php">Random</a>
</li>
<div class="arrow"></div>
</ul>
</div>
</li>
<li class="nav-link" style="--i: 1.1s">
<a href="#">Archives<i class="fas fa-caret-down"></i></a>
<div class="dropdown">`enter code here`enter code here`
<ul>
<li class="dropdown-link">
<a href="/pages/contact.php">Contact us</a>
</li>`enter code here`
<li class="dropdown-link">
<a href="/pages/privacypolicy.php">Privacy Policy</a>
</li>
<li class="dropdown-link">
<a href="/pages/terms&andcondition.php">Terms & Condition</a>
</li>
<li class="dropdown-link">
<a href="/pages/disclaimer.php">Disclaimer</a>
</li>
<div class="arrow"></div>
</ul>
</div>
</li>
<li class="nav-link" style="--i: 1.35s">
<a href="/pages/about us.php">About</a>
</li>
</ul>
输出还显示文件夹已重命名
这是输出 -
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
- name: Download Modules
run: npm ci
- name: React Build
run: |
npm run build
ls -a
mv build docs --verbose
ls -a
我看不到任何错误或某种形式的错误提示
这是我的 github 仓库 Github Repo
答案 0 :(得分:0)
该命令正在运行,但本地操作存储库中的代码更改不会自动发布, 您需要提交它们才能进行更改