-
-
Notifications
You must be signed in to change notification settings - Fork 1
85 lines (81 loc) · 3.42 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI/CD
on:
push:
branches:
- main
repository_dispatch:
types: [run-deploy]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Quick RSS"
description: A powerful and intuitive macOS desktop RSS reader that helps you manage and read your favorite RSS feeds with ease.
keywords: Quick RSS, RSS reader, macOS RSS app, desktop RSS, news aggregator, RSS feed manager
favicon: assets/logo.png
logo: ./assets/logo.png
openSource: https://github.com/jaywcjlove/quick-rss
homepage: https://wangchujiang.com/quick-rss/
tocs: false
element:
wrapper: style=max-width:720px;
meta:
- <meta name="author" content="Kenny Wong">
- <meta property="og:site_name" content="<%= site %>">
- <meta property="og:url" content="<%=homepage%><%=RESOLVE_PATH%>">
- <meta property="og:image" content="<%=homepage%>assets/logo.png">
- <meta property="og:type" content="application">
- <meta property="og:title" content="<%= site %>">
- <meta property="og:description" content="<%= description%>">
- <meta property="twitter:image:src" content="<%=homepage%>assets/screenshots-1.png">
- <meta property="twitter:site" content="@jaywcjlove">
- <meta property="twitter:creator" content="jaywcjlove">
- <meta property="twitter:card" content="summary_large_image">
- <meta property="twitter:title" content="<%= site %> - <%= description%>">
- <meta property="twitter:description" content="<%= description%>">
- <meta name="apple-itunes-app" content="app-id=6670696072">
menus:
Home: index.html
Apps:
url: https://wangchujiang.com/#/app
target: __blank
Feeds:
url: feeds/index.html
target: __blank
sideEffectFiles:
- README.md
- README.zh.md
- terms-of-service.md
- feedback.md
- feedback.zh.md
- terms-of-service.zh.md
- privacy-policy.md
- privacy-policy.zh.md
- feeds/README.md
footer: |
<a href="./terms-of-service.html" target="_blank">Terms of Service</a> •
<a href="./privacy-policy.html" target="_blank">Privacy Policy</a> •
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a> •
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a> •
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br /><br />
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}}
EOF
- run: npm install idoc@1 -g
- run: idoc
- run: |
cp -rp feeds/*.json dist/
cp -rp feeds/*.xml dist/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist