<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>GitHub Actions on heyaohua's Blog</title><link>https://blog.heyaohua.com/tags/github-actions/</link><description>Recent content in GitHub Actions on heyaohua's Blog</description><image><title>heyaohua's Blog</title><url>https://blog.heyaohua.com/og-image.png</url><link>https://blog.heyaohua.com/og-image.png</link></image><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 15 Jan 2024 16:00:00 +0800</lastBuildDate><atom:link href="https://blog.heyaohua.com/tags/github-actions/index.xml" rel="self" type="application/rss+xml"/><item><title>GitHub Actions 自动部署自检清单</title><link>https://blog.heyaohua.com/posts/2024/01/test-deployment/</link><pubDate>Mon, 15 Jan 2024 16:00:00 +0800</pubDate><guid>https://blog.heyaohua.com/posts/2024/01/test-deployment/</guid><description>本文用于验证博客的自动化部署链路是否正常运行，并记录一次完整的流水线健康检查结果，便于后续排查或重复执行。</description><content:encoded><![CDATA[<p>本文用于验证博客的自动化部署链路是否正常运行，并记录一次完整的流水线健康检查结果，便于后续排查或重复执行。</p>
<h2 id="验证目标">验证目标</h2>
<ul>
<li>工作流 <code>Deploy Blog to ECS and Netlify</code> 能够被 <code>main</code> 分支推送事件正确触发</li>
<li>构建节点成功安装依赖、拉取子模块并生成静态页面</li>
<li>部署阶段能通过 SSH 连接到 ECS，并执行 <code>make publish</code> 与静态资源同步</li>
<li>构建产物最终落地到 <code>/data/Htdocs/heyaohua/blog</code>，前端可访问最新页面</li>
</ul>
<h2 id="本次检查结果">本次检查结果</h2>
<table>
  <thead>
      <tr>
          <th>检查项</th>
          <th>结果</th>
          <th>说明</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>GitHub Actions 触发</td>
          <td>✅</td>
          <td><code>main</code> 分支推送后，工作流成功启动</td>
      </tr>
      <tr>
          <td>依赖安装与构建</td>
          <td>✅</td>
          <td>pip 依赖安装完成，<code>pelican content -s publishconf.py</code> 运行正常</td>
      </tr>
      <tr>
          <td>ECS 连接与部署</td>
          <td>✅</td>
          <td><code>appleboy/ssh-action</code> 执行脚本，产物同步至目标目录</td>
      </tr>
      <tr>
          <td>页面可见性</td>
          <td>✅</td>
          <td>部署完成后可在博客前台访问本文</td>
      </tr>
  </tbody>
</table>
<h2 id="执行时间">执行时间</h2>
<ul>
<li>构建触发时间：2024-01-15 16:00 (UTC+08)</li>
<li>整体耗时：约 3 分钟</li>
</ul>
<h2 id="后续建议">后续建议</h2>
<ul>
<li>每次更新部署流程或依赖时，使用此清单快速复测关键节点</li>
<li>结合工作流日志与 ECS 服务器日志，保留 30 天内的关键记录，方便回溯</li>
<li>若未来仅需 ECS 部署，可在工作流中移除 Netlify 步骤，缩短执行时间</li>
</ul>
<hr>
<p>若读者能够看到这篇文章，即表明当前自动部署链路运行良好。如发现异常，请根据表格逐项排查。</p>
]]></content:encoded></item></channel></rss>