Skip to content

Commit

Permalink
ci: update workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 26, 2024
1 parent e3fb47e commit bd713c8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: https://jaywcjlove.github.io/#/sponsor
47 changes: 43 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
Expand All @@ -20,8 +20,47 @@ jobs:
- run: npm run build
- run: npm run coverage

- run: npm install [email protected] -g
- run: idoc -s "Copy Text to Clipboard {{version}}"
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Copy Text to Clipboard {{version}}"
description: Copy Text to Clipboard
openSource: https://github.com/jaywcjlove/copy-to-clipboard
homepage: https://wangchujiang.com/copy-to-clipboard/
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:type" content="application">
- <meta property="og:title" content="<%= site %>">
- <meta property="og:description" content="<%= description%>">
- <meta property="twitter:site" content="@jaywcjlove">
- <meta property="twitter:creator" content="jaywcjlove">
- <meta property="twitter:title" content="<%= site %>">
- <meta property="twitter:description" content="<%= description%>">
menus:
Home: index.html
Apps:
url: https://wangchujiang.com/#/app
target: __blank
Sponsor:
url: https://jaywcjlove.github.io/#/sponsor
target: __blank
sideEffectFiles:
- README.zh.md
footer: |
<a href="https://wangchujiang.com/#/app" target="_blank">App</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

- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main
Expand Down

0 comments on commit bd713c8

Please sign in to comment.