This is aGitHub Actionto deploy your static files toGitHub Pages. This deploy action can be combined simply and freely withStatic Site Generators. (Hugo, MkDocs, Gatsby, mdBook, Next, Nuxt, and so on.) The next
# 部署到 deploy-pages 分支,也就是部署后提交到那个分支 branch: deploy-pages # 填写打包好的目录名称路径,本项目配置在根目录 folder: dist 用到的相关插件地址: https://github.com/actions/checkout https://github.com/pnpm/action-setup/ https://github.com/actions/setup-node https://github.com/Ja...
填好以后我们点击create fork,下一步点击settings,找到左侧的Pages,把来源改成Github action。 然后我们在顶部找到actions,点击这个绿色按钮启动action功能。 启动好以后,左边有一些列出的工作流,我们使用第二个deploy on Github Pages。右侧有一个按钮run workflow,这里点击run workflow。我们刷新一下页面,这里工作流就开...
folder:dist# The folder the action should deploy. 上面的脚本参考自:Deploy to GitHub Pages · Actions · GitHub Marketplace 这些配置也很容易理解,这里有一点要说明,GitHub Actions支持直接复用别人写的脚本,上面的actions/checkout@v4和JamesIves/github-pages-deploy-action@v4就是官方和别人仓库使用的GitHub ...
GitHub Action for creating Cloudflare Pages deployments, using the new Direct Upload feature and Wrangler integration. Usage Create an API token in the Cloudflare dashboard with the "Cloudflare Pages — Edit" permission. Add that API token as a secret to your GitHub repository, CLOUDFLARE_API_TOKE...
在.github/workflows目录下,创建一个yml文件,这就是Github Action需要的一个工作流的配置,如果需要多个工作流可以创建多个yml文件; Hugo的官方文档Build Hugo With GitHub Action中也推荐采用GitHub Actions作为持续集成部署方案,并提供了yml文件示例: name: github pages ...
GitHub Action 是 GitHub 于 2018 年 10 月推出的一个 CI\CD 服务(持续集成和持续部署)。简单明了的说 就是你可以给你的代码仓库部署一系列自动化脚本,在你进行了提交/合并分支等操作后,自动执行脚本。 通过GitHub Actions 可快速搭建 GitHub Pages 静态网站(域名为username.github.io),使用它来发布、测试、部...
2.Configure Git中是 Github Action 提交 chart 到gh-pages分支时所用到的Git用户信息,可根据情况自行修改。 触发Chart 自动发布 确保在Chart.yaml中定义好version,提交并 push 代码触发 Github Action 工作流。 如果成功,可以在 release 页面看到自动生成的压缩包: ...
当文章较多时,Hexo生成较慢,比较耗时,而且还需要 手动发布到 gh-pages,过程比较繁琐,而 GitHub Actions 作为 GitHub推出的免费CI/CD服务,正好可以用来解决这一问题,我们只需将源代码推送到GitHub,由Action自动帮我们构建Hexo,并完成发布到 GitHub Pages,不仅...
github-pages-deploy-action将项目发布到Github Pages - name: Deploy uses: JamesIves/github-pages-deploy-action@3.7.1 with: #该workflow需要操作repo,因此需要一个**,下面会讲到如何获取这个** ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # 发布到的分支 BRANCH: gh-pages # 要发布的文件夹 FOLDER: ...