doc: update README.md #16
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 | |
- 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/key-clicker/6740425504" title="KeyClicker for macOS"> | |
<img alt="KeyClicker AppStore" src="https://jaywcjlove.github.io/sb/download/macos.svg" height="51"> | |
</a> | |
<a target="_blank" href="https://github.com/jaywcjlove/key-clicker/releases/latest/download/KeyClicker.zip" title="KeyClicker for macOS"> | |
<img alt="KeyClicker from GitHub" src="https://wangchujiang.com/sb/download/apple-download.svg" height="51"> | |
</a> | |
- name: Get latest tag | |
id: get_latest_tag | |
run: echo "LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV | |
- name: Create idoc config. | |
run: | | |
cat > idoc.yml << EOF | |
site: "KeyClicker {{version:${{ steps.create_tag.outputs.version }}}}" | |
description: KeyClicker is an app that displays local date, reminders, and events in the menu bar. By clicking on KeyClicker in the menu bar, you can view your calendar, events, and reminders, which can also be synchronized with Apple Calendar | |
keywords: Calendar,Menu Bar,Reminders,Events,Lunar,Status Bar,Schedule Management,Apple Calendar Sync | |
favicon: assets/logo.png | |
logo: ./assets/logo.png | |
openSource: https://github.com/jaywcjlove/key-clicker | |
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 | |
- feedback.md | |
- feedback.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/#/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 | |