picgo(图床)
// picogo config
"picgo.picBed.current": "github",
"picgo.picBed.github.token": "gxxxxxxxx",
"picgo.picBed.github.repo": "fly-t/blog",
"picgo.picBed.github.branch": "master",
"picgo.customUploadName": "${mdFileName}-${dateTime}${extName}",
"picgo.picBed.github.path": "images/",
"picgo.customOutputFormat": "![](${url})",
githu连接问题
github push不支持账号密码,使用token
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
url = https://ellisonpei:这里填access_token@github.com/项目名/项目名.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = aa5279aa
email = xxxx@qq.com
[branch "develop"]
remote = origin
merge = refs/heads/develop
[credential]
helper =
这里没有反应, 关掉代理重新尝试
-pages quarto publish gh
github action 自动部署
_quarto.yml
:
execute: auto freeze
创建该目录并创建文件
// 项目根目录
.github/workflows
mkdir
cd .github/workflows/publish.yml touch
.github/workflows/publish.yml
:
on:
workflow_dispatch:
push: main
branches
: Quarto Publish
name
:
jobs-deploy:
build-on: ubuntu-latest
runs:
permissions: write
contents:
steps- name: Check out repository
: actions/checkout@v2
uses
- name: Set up Quarto
: quarto-dev/quarto-actions/setup@v2
uses
- name: Render and Publish
: quarto-dev/quarto-actions/publish@v2
uses:
with: gh-pages
target:
env: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN
--global credential.helper store
git config .gitconfig
vim // close
--system --unset credential.helper
git config
--global http.proxy 'http://127.0.0.1:7890'
git config --global https.proxy 'http://127.0.0.1:7890' git config
修改上传快捷键
参考
设置github push https://www.jianshu.com/p/3b4f7619999e 显示。git:https://blog.csdn.net/Mrs_chens/article/details/101191893
Quarto 官方部署流程:https://quarto.org/docs/publishing/github-pages.html GitHub Pages: https://docs.github.com/cn/pages GitHub Actions: https://docs.github.com/cn/actions workflows 字段介绍:https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions