Skip to content

Commit bbda250

Browse files
committed
Add CI
1 parent bf5d826 commit bbda250

18 files changed

+46
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitHub Pages - CI
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v3
14+
with:
15+
persist-credentials: false
16+
- name: Install and Build 🔧
17+
run: |
18+
npm install -g pnpm
19+
pnpm install
20+
npm run build
21+
env:
22+
CI: false
23+
- name: Deploy 🚀
24+
uses: JamesIves/github-pages-deploy-action@releases/v3
25+
with:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
BRANCH: gh-pages # The branch the action should deploy to.
28+
FOLDER: dist # The folder the action should deploy.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
<img src="./assets/logo.svg" align="center" />
1+
![](./assets/logo.svg)
22

33
## 特性
44

55
- 纯静态,无需后端,部署简单,性能极佳
66
- 支持采用 GitHub Actions 进行 CI/CD
77
- 可单独为相册设置问题和答案
88

9+
## 预览
10+
11+
![](./assets/preview.png)
12+
13+
![](./assets/need_password.png)
14+
915
## 快速上手
1016

1117
首先,你需要在 GitHub 上选择 `Use this template` 按钮,然后填写相应信息,创建一个新的仓库。编辑 `album` 目录中的 `meta.yml` 文件和里面的照片,然后直接提交到仓库,GitHub Actions 会自动构建并部署到 GitHub Pages。
@@ -32,7 +38,7 @@ album:
3238
friendly_name: 秘密相册
3339
password: 2008 # 相册密码(可选)
3440
hint: 我出生的年份 # 相册密码提示问题(可选)
35-
preview: IMG_1010.JPG
41+
preview: IMG_1010.jpg
3642
```
3743
3844
## Changelog

album/cat/IMG_0001.jpg

126 KB
Loading

album/cat/IMG_0010.jpg

190 KB
Loading

album/cat/IMG_0011.jpg

97.3 KB
Loading

album/cat/IMG_0100.jpg

22.6 KB
Loading

album/cat/IMG_0101.jpg

145 KB
Loading

album/foods/IMG_0110.jpg

340 KB
Loading

album/foods/IMG_0111.jpg

1.22 MB
Loading

album/foods/IMG_1000.jpg

2.1 MB
Loading

0 commit comments

Comments
 (0)