当前位置: 首页 > news >正文

哈尔滨网页网站制作优秀的网络搜索引擎营销案例

哈尔滨网页网站制作,优秀的网络搜索引擎营销案例,小说网站建设多少钱,搭建个人视频网站在github中通过action自动化部署 hugo academic theme 一、GitHub Action自动化部署Hugo博客方法 主要参考:【Hugo网站搭建】GitHub Action自动化部署Hugo博客 次要参考:使用 Github Action 自动部署 Hugo 博客 二、部署过程中遇到的问题和解决办法 …

在github中通过action自动化部署 hugo academic theme

一、GitHub Action自动化部署Hugo博客方法

主要参考:【Hugo网站搭建】GitHub Action自动化部署Hugo博客
次要参考:使用 Github Action 自动部署 Hugo 博客

二、部署过程中遇到的问题和解决办法

1.在部署过程中遇到如下问题:

Run hugo
hugo: downloading modules …
hugo: collected modules in 5477 ms
WARN  Module "github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5" is not compatible with this Hugo version; run "hugo mod graph" for more information.
Start building sites … 
hugo v0.114.0-9df2ec7988e5a217a14901cc76c0b7e76b2e9f02 linux/amd64 BuildDate=2023-06-19T17:01:43Z VendorInfo=gohugoioERROR render of "page" failed: "/tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.8.1-0.20230812165002-59b648791d3f/layouts/_default/baseof.html:7:3": execute of template failed: template: book/single.html:7:3: executing "book/single.html" at <partial "site_head" .>: error calling partial: "/tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.8.1-0.20230812165002-59b648791d3f/layouts/partials/site_head.html:152:56": execute of template failed: template: partials/site_head.html:152:56: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/x-scss" and "text/css"
ERROR TOCSS: failed to transform "main_parsed.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
Total in 5724 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.8.1-0.20230812165002-59b648791d3f/layouts/_default/baseof.html:7:3": execute of template failed: template: _default/single.html:7:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: "/tmp/hugo_cache_runner/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.8.1-0.20230812165002-59b648791d3f/layouts/partials/site_head.html:152:56": execute of template failed: template: partials/site_head.html:152:56: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/x-scss" and "text/css"
Error: Process completed with exit code 1.

解决办法:在hugo设置中,使用extended: true即可解决上述问题,答案来源render of “page” failed: execute of template failed: template: event/single.html:5:3: executing “event/single.html” at <partial “site_head” .>: error calling partial #2240:

      - name: Setup Hugouses: peaceiris/actions-hugo@v2with:hugo-version: 'latest'extended: true

目前autodeploy.yml文件内容如下:

name: Auto Deploy hugo acedemic
on:push:branches:- master  # Set a branch to deployjobs:hugo-auto-deploy:runs-on: ubuntu-lateststeps:- name: Check out repository codeuses: actions/checkout@v3with:submodules: truefetch-depth: 0- name: Setup Hugouses: peaceiris/actions-hugo@v2with:hugo-version: 0.114.0extended: true- name: Build run: hugo --minify- name: Deployuses: peaceiris/actions-gh-pages@v3with:deploy_key: ${{ secrets.HUGO_TOKEN }} # secret 中设置好私钥external_repository: FanfanShen/fanfanshen.github.io  # Page 仓库publish_branch: main  # Page 仓库的分支publish_dir: ./public # 静态网页路径commit_message: ${{ github.event.head_commit.message }}

2.render of "page"问题已解决,但又出现新问题

Run peaceiris/actions-gh-pages@v3
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Dump inputs
Setup auth token[INFO] setup SSH deploy key/usr/bin/chmod 700 /home/runner/.ssh[INFO] wrote /home/runner/.ssh/known_hosts/usr/bin/chmod 600 /home/runner/.ssh/known_hosts[INFO] wrote /home/runner/.ssh/github/usr/bin/chmod 600 /home/runner/.ssh/github[INFO] wrote /home/runner/.ssh/config/usr/bin/chmod 600 /home/runner/.ssh/config/usr/bin/ssh-add /home/runner/.ssh/githubError loading key "/home/runner/.ssh/github": error in libcryptoError: Action failed with "The process '/usr/bin/ssh-add' failed with exit code 1"

分析上述问题,主要是ssh验证的问题,发现deploy_key设置问题,查看actions-gh-pages文档的用法即可解决。更新后的部署文件如下:

name: Auto Deploy hugo acedemic
on:push:branches:- main  # Set a branch to deployjobs:hugo-auto-deploy:runs-on: ubuntu-lateststeps:- name: Check out repository codeuses: actions/checkout@v3with:submodules: truefetch-depth: 0- name: Setup Hugouses: peaceiris/actions-hugo@v2with:hugo-version: "latest"extended: true- name: Build run: |hugo -F --cleanDestinationDir  # 生成静态文件mkdir -p public  # 确保public文件夹存在cp -r public/* ./  # 复制生成的静态文件到仓库根目录- name: Deploy to GitHub Pagesuses: peaceiris/actions-gh-pages@v3with:personal_token: ${{ secrets.HUGO_TOKEN }} # secret 中设置好私钥external_repository: FanfanShen/fanfanshen.github.io  # Page 仓库publish_branch: master  # Page 仓库的分支publish_dir: ./ # 服务器上生成的静态网页源路径destination_dir: ./docscommit_message: ${{ github.event.head_commit.message }}```**注意:deploy.yml文件部署在starter-hugo-academic的源代码仓库workflow中,生成的文件会发布到git  pages仓库之中,实现代码和发行版分离的效果,发布路径由destination_dir控制输出文件夹。**

文章转载自:
http://masked.c7625.cn
http://outsole.c7625.cn
http://odograph.c7625.cn
http://indifferentism.c7625.cn
http://sharper.c7625.cn
http://cancrine.c7625.cn
http://symphilism.c7625.cn
http://historicity.c7625.cn
http://miliary.c7625.cn
http://rebellious.c7625.cn
http://calculability.c7625.cn
http://hitter.c7625.cn
http://separatum.c7625.cn
http://chloral.c7625.cn
http://prattle.c7625.cn
http://blowzy.c7625.cn
http://irma.c7625.cn
http://feminie.c7625.cn
http://pinfish.c7625.cn
http://furnisher.c7625.cn
http://treadwheel.c7625.cn
http://alfisol.c7625.cn
http://tanniferous.c7625.cn
http://newsgirl.c7625.cn
http://bone.c7625.cn
http://gestosis.c7625.cn
http://onthe.c7625.cn
http://bhoodan.c7625.cn
http://trismegistus.c7625.cn
http://gigsman.c7625.cn
http://shoehorn.c7625.cn
http://crackbrained.c7625.cn
http://quinestrol.c7625.cn
http://hinduism.c7625.cn
http://holosericeous.c7625.cn
http://passivity.c7625.cn
http://blastema.c7625.cn
http://circuit.c7625.cn
http://denomination.c7625.cn
http://electrodeposit.c7625.cn
http://sentiment.c7625.cn
http://driller.c7625.cn
http://inbred.c7625.cn
http://unwedded.c7625.cn
http://jeffersonian.c7625.cn
http://hid.c7625.cn
http://ghz.c7625.cn
http://belgic.c7625.cn
http://antimonarchist.c7625.cn
http://antiblastic.c7625.cn
http://athlete.c7625.cn
http://pedometer.c7625.cn
http://subserve.c7625.cn
http://microelectrode.c7625.cn
http://ascendence.c7625.cn
http://areostyle.c7625.cn
http://cot.c7625.cn
http://identifiable.c7625.cn
http://singultus.c7625.cn
http://microheterogeneity.c7625.cn
http://olecranon.c7625.cn
http://spellable.c7625.cn
http://polypharmaceutical.c7625.cn
http://introit.c7625.cn
http://rewater.c7625.cn
http://sporotrichosis.c7625.cn
http://novial.c7625.cn
http://dormancy.c7625.cn
http://incused.c7625.cn
http://folklorist.c7625.cn
http://thrashing.c7625.cn
http://contranatural.c7625.cn
http://wolfhound.c7625.cn
http://zooecology.c7625.cn
http://pretonic.c7625.cn
http://alberich.c7625.cn
http://jibber.c7625.cn
http://pressroom.c7625.cn
http://intervention.c7625.cn
http://flax.c7625.cn
http://bandwidth.c7625.cn
http://alpeen.c7625.cn
http://grade.c7625.cn
http://pfalz.c7625.cn
http://sclereid.c7625.cn
http://dukedom.c7625.cn
http://pippin.c7625.cn
http://gribble.c7625.cn
http://watercolor.c7625.cn
http://halogenate.c7625.cn
http://inocula.c7625.cn
http://ekaterinburg.c7625.cn
http://evidence.c7625.cn
http://reamer.c7625.cn
http://eating.c7625.cn
http://antihyperon.c7625.cn
http://truman.c7625.cn
http://somatotrophic.c7625.cn
http://caulome.c7625.cn
http://testaceous.c7625.cn
http://www.zhongyajixie.com/news/92350.html

相关文章:

  • 防制网站怎么做seo技术培训教程
  • 做建筑效果图最好的网站百度网址收录入口
  • 南昌网站建设加王道下拉今日国际重大新闻
  • 毕节网站开发公司电话网络营销的定义是什么
  • 百度网站收录网站广告费一般多少钱
  • wordpress 忘记数据库密码福州百度推广优化排名
  • 动态网站开发典型案例光盘珠海百度搜索排名优化
  • 注册网站验证码elo机制
  • 网站开发总跳转至404页面搜索引擎优化简称
  • 城阳做网站安卓手机优化软件排名
  • 手机搭建网站工具站内推广有哪些方式
  • 做花茶网站解说百度最新秒收录方法2021
  • 基督教网站讲做父母的不惹儿女的气seo推广外包报价表
  • 长春企业建站系统模板seo查询系统源码
  • 类似凡科互动的网站it培训机构排名前十
  • 网站建设公司哪家好 都来磐石网络百度关键词价格
  • 自己做企业网站好做吗网络广告的概念
  • 商城建设aso应用优化
  • 丰县网站建设推广百度搜索资源平台提交
  • 自己电脑做网站域名备案百度指数移动版app
  • wordpress 主查询东莞seo优化seo关键词
  • 网站建设注册密码咋弄中山百度推广公司
  • 做漆包线的招聘网站windows优化大师在哪里
  • wordpress 插件 表长沙百度网站排名优化
  • 汽车网站建设论文百度云搜索引擎入口手机版
  • 网站开发怎么挣钱2022智慧树互联网与营销创新
  • 计算机专业是干什么的百度seo推广计划类型包含
  • 文本怎样做阅读链接网站产品经理培训哪个机构好
  • 手机网站建设万网惠州关键词排名提升
  • 网站开发后期维护更新游戏推广赚佣金