Skip to content

Build static websites using GitHub issues, GitHub Actions, and Vitepress without writing any code or making Git commits and pushes.

License

Notifications You must be signed in to change notification settings

luoway/vitepress-issues-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vitepress-issues-page

English docs

使用GitHub issues + GitHub Actions + Vitepress构建静态网站,无需写代码或操作git提交推送。

用法一

此方法只能fork一次,最少操作,适合初次尝试。

  1. fork此仓库
  2. 在仓库的Actions页面,启用功能
  3. 在仓库的Settings - General - Features设置项处,启用Issues功能
  4. 在仓库的Settings - Pages - Build and deployment设置项处,将Source配置为Github Actions
  5. 在Issues - Labels处新建标签,命名为deploy
  6. 新建issue,打上deploy标签后,等待约3分钟,即可在仓库首页看到github-pages入口

用法二

此方法可以多次使用,无需操作仓库文件。

  1. 新建仓库,在新建仓库页面进入Import a repository.
  2. Your old repository's clone URL*填写此仓库链接,完成新建仓库步骤
  3. 在仓库的Settings - Actions - General - Actions permissions设置项处,选择Allow all actions and reusable workflows,点击Save
  4. 在仓库的Actions页面,启用功能
  5. 在仓库的Settings - Pages - Build and deployment设置项处,将Source配置为Github Actions.
  6. 在Issues - Labels处新建标签,命名为deploy
  7. 新建issue,打上deploy标签后,等待约3分钟,即可在仓库首页看到github-pages入口

用法三

此方法可以多次使用,但需要使用shell操作完成仓库的初始化。

  1. 新建一个仓库,例如luoway/new-repo,拉取到本地
  2. 执行以下shell操作
    # dir: new-repo/
    git clone https://github.com/luoway/vitepress-issues-page.git
    mv ./vitepress-issues-page/.* ./vitepress-issues-page/* .
    rm -rf ./vitepress-issues-page
    git add -A
    git commit -m "init"
    git push
  3. 在仓库的Settings - Pages - Build and deployment设置项处,将Source配置为Github Actions.
  4. 在Issues - Labels处新建标签,命名为deploy
  5. 新建issue,打上deploy标签后,等待约3分钟,即可在仓库首页看到github-pages入口

快捷访问github pages

点击仓库首页右侧About小齿轮,勾选Use your GitHub Pages website,点击Save changes,即可在About下显示快速访问链接

页面配置

点击以下链接,进行手动修改

About

Build static websites using GitHub issues, GitHub Actions, and Vitepress without writing any code or making Git commits and pushes.

Topics

Resources

License

Stars

Watchers

Forks