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

如何使用Github Issues搭建个人博客? #1

Open
humyna opened this issue Feb 1, 2024 · 2 comments
Open

如何使用Github Issues搭建个人博客? #1

humyna opened this issue Feb 1, 2024 · 2 comments
Labels

Comments

@humyna
Copy link
Owner

humyna commented Feb 1, 2024

这是使用Github Issues写的第一篇博客,简单记录下搭建步骤以及期间遇到的几个问题。

  1. 新建一个仓库gitblog
    下载到本地

  2. 新建仓库G_KEY
    a. 新生成一个github token
    New personal access token (classic)
    scope勾选: repo、workflow、gist、user,
    生成后复制到一个安全的地方存储后面备用;
    b. 配置Repository secrets
    settings-->secrets and variables-->Actions-->new repository secrets,名称为G_KEY,值就是上面的github token

注意:这个G_KEY会在后面的gene_readme.yml文件中使用

  1. 下载yihong0618开源的这个项目,将其中除了feed.xml的文件全部copy到第一步项目中。
    a. BACKUP中只保留.gitkeep空文件,
    b. 修改gene_readme.yml文件,L11中分支名由master改成main;前面的G_KEY在这个文件配置(secrets.G_KEY)。
    c. 修改main.py文件,搜索master,改成main

4.修改workflow permissions
image

如果不修改,在提交issue后,github actions执行报错
image

5.初始化一些labels

至此基于issues个人博客就搭建完成了,可以愉快地写作了。

注意:提交issues,选择lable,github actions会被触发执行。

@humyna humyna added the 2024 label Feb 1, 2024
@humyna humyna changed the title 测试gitblog 使用Github Issues写博客解决方案 Feb 1, 2024
@humyna humyna changed the title 使用Github Issues写博客解决方案 如何使用Github Issues搭建个人博客? Feb 1, 2024
@Meekdai
Copy link

Meekdai commented Feb 2, 2024

你好,我有个项目是基于gitblog进行的改进,搭建起来方便很多,也有独立的页面展示,详情可以看
https://github.com/Meekdai/Gmeek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@humyna @Meekdai and others