免费部署静态网站

1 注册guihub账号

自行了解 https://github.com

2 新建仓库

新建仓库

3 上传静态文件代码

注意根目录需要一个文件为 index.html,此文件为你的静态网站访问入口

<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    测试一下
</body>
</html>

目录

4 设置GitHub Pages

打开 github settings => 找到 GitHub Pages => 设置 Source => Game OVer !
打开 github settings


找到 GitHub Pages


设置 Source

posted @   Boring246  阅读(313)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示