Skip to content

Commit 9c65fcf

Browse files
committed
ci: update workflows config.
1 parent e05fcbe commit 9c65fcf

File tree

2 files changed

+64
-4
lines changed

2 files changed

+64
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,27 @@ jobs:
1313
with:
1414
node-version: 20
1515
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: Create Tag
18+
id: create_tag
19+
uses: jaywcjlove/create-tag-action@main
20+
with:
21+
test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
22+
23+
- name: Create Released Tag
24+
uses: jaywcjlove/create-tag-action@main
25+
with:
26+
version: ${{ steps.create_tag.outputs.version }}
27+
release: true
28+
body: |
29+
<a target="_blank" href="https://apps.apple.com/app/create-custom-symbols/id6476924627" title="Create Custom Symbols AppStore">
30+
<img alt="Create Custom Symbols AppStore" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51" />
31+
</a>
1632
1733
- name: Create idoc config.
1834
run: |
1935
cat > idoc.yml << EOF
20-
site: "Create Custom Symbols"
36+
site: "Create Custom Symbols {{version:${{ steps.create_tag.outputs.version }}}}"
2137
description: A tool that can convert any SVG icon into a custom SF symbol. Your customized SF symbol can be imported into Xcode and utilized in any project based on UIKit or SwiftUI
2238
keywords: Symbols,svg,developer tools,productivity,create-custom-symbols
2339
favicon: assets/logo.png

.github/workflows/tag.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,50 @@ jobs:
2525
version: ${{ env.VERSION }}
2626
release: true
2727
body: |
28-
<p>
29-
<a target="_blank" href="https://apps.apple.com/app/create-custom-symbols/id6476924627" title="Create Custom Symbols AppStore"><img alt="Create Custom Symbols AppStore" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51"></a>
30-
</p>
28+
<a target="_blank" href="https://apps.apple.com/app/create-custom-symbols/id6476924627" title="Create Custom Symbols AppStore">
29+
<img alt="Create Custom Symbols AppStore" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51" />
30+
</a>
31+
32+
- name: Create idoc config.
33+
if: steps.create_tag.outputs.successful == 'true'
34+
run: |
35+
cat > idoc.yml << EOF
36+
site: "Iconize Folder {{version:${{steps.create_tag.outputs.version}}}}"
37+
keywords: Folder,FolderIcon,IconizeFolder,Icon
38+
favicon: assets/logo.png
39+
logo: ./assets/logo.png
40+
openSource: https://github.com/jaywcjlove/IconizeFolder
41+
tocs: false
42+
element:
43+
wrapper: style=max-width:720px;
44+
menus:
45+
Home: index.html
46+
Apps: https://wangchujiang.com/#/app
47+
About: https://wangchujiang.com/#/about
48+
sideEffectFiles:
49+
- README.md
50+
- README.zh.md
51+
- terms-of-service.md
52+
- feedback.md
53+
- feedback.zh.md
54+
- terms-of-service.zh.md
55+
- privacy-policy.md
56+
- privacy-policy.zh.md
57+
footer: |
58+
<a href="https://wangchujiang.com/#/app" target="_blank">App</a> •
59+
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a> •
60+
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a> •
61+
<a href="https://wangchujiang.com/DevHub/" target="_blank">DevHub</a> •
62+
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br /><br />
63+
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}}
64+
EOF
65+
66+
- run: npm install idoc@1 -g
67+
- run: idoc
68+
69+
- name: Deploy
70+
uses: peaceiris/actions-gh-pages@v4
71+
with:
72+
commit_message: ${{ github.event.head_commit.message }}
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
publish_dir: ./dist

0 commit comments

Comments
 (0)