Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Travis自动将github issue转换成blog并发布 #15

Open
lotosbin opened this issue Aug 26, 2019 · 0 comments
Open

使用Travis自动将github issue转换成blog并发布 #15

lotosbin opened this issue Aug 26, 2019 · 0 comments

Comments

@lotosbin
Copy link
Owner

lotosbin commented Aug 26, 2019

原因

使用

实现

  • Travis相关配置,参考其他博客
    增加环境变量 GH_TOKEN
  • 定时触发travis构建,参考官方文档
  • 调用 generate.js 脚本生成 blog & 自动将变更 commit & push 会repository

.travis.yml

language: node_js
node_js:
script: node generate.js
branches:
  only:
  - gh-pages
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GH_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep_history: true
  on:
    branch: gh-pages
  • 设置 Travis Cron Jobs ,每日自动构建 gh-pages 分支

TODO

  • [] issue更新自动触发travis构建

参考[ref]:

@lotosbin lotosbin added the draft label Aug 26, 2019
@lotosbin lotosbin self-assigned this Aug 26, 2019
@lotosbin lotosbin moved this from In progress to Done in [系列]使用github issue创建blog Aug 27, 2019
@lotosbin lotosbin moved this from Done to In progress in [系列]使用github issue创建blog Aug 27, 2019
@lotosbin lotosbin moved this from In progress to Done in [系列]使用github issue创建blog Sep 4, 2019
@lotosbin lotosbin moved this from Done to Published in [系列]使用github issue创建blog Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant