released v1.7.0 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
push: | |
branches: | |
- main | |
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 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/symbol-scribe/id6470879005" title="Symbol Scribe for macOS"> | |
<img alt="Symbol Scribe for macOS" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51"> | |
</a> | |
- name: Create idoc config. | |
run: | | |
cat > idoc.yml << EOF | |
site: "Symbol Scribe {{version:${{ steps.create_tag.outputs.version }}}}" | |
description: In messaging applications, use interesting emoji emoticons such as smiley faces, kaomojis, and various other symbols. | |
keywords: kaomojis,emoji,symbols,alphabet,language symbols | |
favicon: assets/logo.png | |
logo: ./assets/logo.png | |
openSource: https://github.com/jaywcjlove/symbol-scribe | |
homepage: https://wangchujiang.com/symbol-scribe/ | |
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=id6472593276"> | |
menus: | |
Home: index.html | |
Apps: | |
url: https://wangchujiang.com/#/app | |
target: __blank | |
About: | |
url: https://wangchujiang.com/#/about | |
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: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
commit_message: ${{ github.event.head_commit.message }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |