GithubHelp home page GithubHelp logo

zhengfan2014 / zhengfan2014.github.io Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 66.07 MB

我的blog(Gridea Action 推送助手) 自动同步推送到Gitee & 自动白嫖Cdn &基于Github Action

Home Page: https://zhengfan2014.github.io

HTML 96.80% CSS 2.92% Python 0.28%
gridea gridea-blog gridea-theme

zhengfan2014.github.io's Introduction

Gridea action 推送助手

一键修改Gridea站点Url&启用JsDelivr CDN&同步到Gitee

通过 酷安粉丝 b站粉丝 爱发电本月收入 爱发电发电人数

功能

  • 基于Github Action
  • 自动白嫖JsDelivr CDN(仅限Github Page)
  • 自动同步到Gitee并拉动Page

演示

github action 执行 屏幕截图 2021-02-24 163048.jpg github 仓库效果 屏幕截图 2021-02-24 163118.jpg gitee 仓库效果 屏幕截图 2021-02-24 163138.jpg

安装

1. 复制本仓库.github整个文件夹到你Gridea的static文件夹里面,并确保static文件夹里面有一个.nojekyll 的空文件

2. 修改文件夹里bulid.yml里的env

  ################## github 设置 ###################################################
  # 注意替换为你的 Github 用户名
  GITHUB_USERNAME: zhengfan2014
  # 注意替换为你的 Github 仓库
  GITHUB_REPO: zhengfan2014.github.io
  # 注意替换为你的 Github 仓库的分支(也就是Gridea设置的分支)
  GITHUB_BRANCH: master
  # 注意替换为你的 Github 仓库Url
  GITHUB_URL: https://github.com/zhengfan2014/zhengfan2014.github.io
  ################## gitee 设置 ####################################################
  # 注意替换为你的 Gitee 用户名
  GITEE_USERNAME: zhengfan2014
  # 注意替换为你的 Gitee 绑定的邮箱
  GITEE_USER_EMAIL: [email protected]
  # 注意替换为你的 Gitee 仓库,仓库名严格区分大小写,请准确填写,否则会出错
  GITEE_REPO: zhengfan2014
  # 要部署的分支,默认是 master,若是其他分支,则需要指定(指定的分支必须存在)
  GITEE_BRANCH: master
  # 注意在 Settings->Secrets 配置 GITEE_PASSWORD

ps:两个python脚本也要记得修改

3. 增加机密

  • GITEE_PASSWORD : 你gitee账号的密码(用来自动刷新gitee page)
  • GITEE_PRIVATE_KEY : 你gitee仓库的私钥,用来免验证推送到gitee
  • KNOWN_HOSTS : 第一次登录ssh后生成的,用来信任gitee的服务器

4. 开始享受

FAQ

Q: action 跑到 Gitee 推送处卡住很久很久
A: 美丽坚push到国内时网络卡了。无解,建议 我们重新开始战斗(推送) 吧

Q: Gridea预览成功,推送到Github成功,但是Github网页没有收到推送
A: Gridea打开开发者模式 - console,点击推送到github,观察报错信息。如果出现了

refs/heads/master refusing to allow a Personal Access Token to create or update workflow '.github/workflows/bulid.yml' without 'workflow' scope

错误,则是你的Gridea没有推送权限,请到 https://github.com/settings/tokens 处更新你的token权限,增加workflow权限

恰饭

fe198bb1523528c2b852d28626379a2a.png

zhengfan2014.github.io's People

Contributors

github-actions[bot] avatar zhengfan2014 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

zhengfan2014.github.io's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.