Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 17, 2024
1 parent e05fcbe commit 9c65fcf
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 4 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,27 @@ jobs:
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Released Tag
uses: jaywcjlove/create-tag-action@main
with:
version: ${{ steps.create_tag.outputs.version }}
release: true
body: |
<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>
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Create Custom Symbols"
site: "Create Custom Symbols {{version:${{ steps.create_tag.outputs.version }}}}"
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
keywords: Symbols,svg,developer tools,productivity,create-custom-symbols
favicon: assets/logo.png
Expand Down
50 changes: 47 additions & 3 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,50 @@ jobs:
version: ${{ env.VERSION }}
release: true
body: |
<p>
<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>
</p>
<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>
- name: Create idoc config.
if: steps.create_tag.outputs.successful == 'true'
run: |
cat > idoc.yml << EOF
site: "Iconize Folder {{version:${{steps.create_tag.outputs.version}}}}"
keywords: Folder,FolderIcon,IconizeFolder,Icon
favicon: assets/logo.png
logo: ./assets/logo.png
openSource: https://github.com/jaywcjlove/IconizeFolder
tocs: false
element:
wrapper: style=max-width:720px;
menus:
Home: index.html
Apps: https://wangchujiang.com/#/app
About: https://wangchujiang.com/#/about
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
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/DevHub/" target="_blank">DevHub</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: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 9c65fcf

Please sign in to comment.