Skip to content

Commit 03225c6

Browse files
committed
📝 add gh-page with idoc
Signed-off-by: samzong <[email protected]>
1 parent e46d7e9 commit 03225c6

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/idoc.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# 📖 Simple document generation tool! Dependence Node.js run.
2+
# https://github.com/jaywcjlove/idoc
3+
4+
name: idoc
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
registry-url: "https://registry.npmjs.org"
19+
20+
- name: Create idoc config.
21+
run: |
22+
cat > idoc.yml << EOF
23+
site: hf-model-downloader
24+
description: A cross-platform GUI application for easily downloading Hugging Face models without requiring technical knowledge or setup.
25+
keywords: Hugging Face,Model Downloader,GUI Application,Cross-Platform,Easy Download,Hugging Face Models
26+
favicon: assets/icon.ico
27+
logo: assets/icon.png
28+
29+
openSource: https://github.com/samzong/hf-model-downloader
30+
31+
tocs: false
32+
33+
element:
34+
wrapper: style=max-width:720px;
35+
36+
menus:
37+
Home: index.html
38+
About:
39+
url: https://github.com/samzong
40+
target: __blank
41+
EOF
42+
43+
- run: npm install idoc@1 -g
44+
- run: idoc
45+
46+
- name: Deploy
47+
uses: peaceiris/actions-gh-pages@v4
48+
if: github.ref == 'refs/heads/main'
49+
with:
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
publish_dir: ./dist

0 commit comments

Comments
 (0)