家有自己自温暖 大佬有话说 :
travis-ci 255退出
本帖最后由 家有自己自温暖 于 2020-11-5 18:07 编辑
https://imgloc.com/images/2020/11/05/rmXk.png
请问大佬这个错误为什么会出现呐?
我就是使用travis-ci构建HUGO的时候发生的
language: go
go:
– "1.8"# 指定Golang 1.8
# Specify which branches to build using a safelist
# 分支白名单限制: 只有hugo分支的提交才会触发构建
branches:
only:
– main
env:
global:
# 设定 Github Pages 环境变量
– GH_REF: github.com/xxx/xxx
install:# 安装依赖
# 安装 hugo (version: v0.66.0)
– wget https://github.com/gohugoio/hugo/releases/download/v0.66.0/hugo_extended_0.66.0_Linux-64bit.deb
– sudo dpkg -i hugo*.deb
# 安装主题
– git clone https://github.com/xxx/xxx.git
script:
– hugo# 生成网站
deploy:
provider: pages# 部署到 Github Pages
skip_cleanup: true# 必须为 true ,否则 Travis 会删除在构建期间创建的所有文件(即删除了要上传的文件)
local_dir: public# 被推送到 GitHub Pages 的目录,可以指定为当前目录的绝对路径或相对路径
on:
branch: main# 博客源码所在分支
target_branch: gh-pages# 将 local-dir 强制推送到哪个分支(自定义,名称不能与源代码分支名相同),默认为 gh-pages
token: $GITHUB_TOKEN
strategy: git
keep_history: true# 保持 target-branch 分支的提交记录
llmwxt 大佬有话说 :
帮顶,技术大佬帮回答吧!
:lol:lol:lol
リムル 大佬有话说 :
branch一般是master 看看改完能不能build