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

gitblog@yihong0618博客安装教程 #10

Open
692 opened this issue Oct 13, 2024 · 0 comments
Open

gitblog@yihong0618博客安装教程 #10

692 opened this issue Oct 13, 2024 · 0 comments

Comments

@692
Copy link
Owner

692 commented Oct 13, 2024

新建一个仓库gitblog

新建仓库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文件中使用


下载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会被触发执行。

Repository owner locked as off-topic and limited conversation to collaborators Oct 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant