From 934259c4e86cb6bf5570ea4425f86e842ac52ff2 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 27 Nov 2023 12:16:15 +0800 Subject: [PATCH] ci: update workflows config. --- .github/workflows/main.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4debb0d..72f446c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,18 @@ jobs: - run: npm install - run: npm run coverage - - run: npm install idoc@1.26.6 -g - - run: idoc -s "Local IP URL {{version}}" - + - name: Create idoc config. + run: | + cat > idoc.yml << EOF + site: "Local IP URL {{version}}" + menus: + Home: index.html + Sponsor: https://jaywcjlove.github.io/#/sponsor + EOF + + - run: npm install idoc@1.27.2 -g + - run: idoc --output="build" + - name: Create Coverage Badges uses: jaywcjlove/coverage-badges-cli@main with: @@ -80,7 +89,7 @@ jobs: name: ${{ steps.create_tag.outputs.version }} tag: ${{ steps.create_tag.outputs.version }} body: | - [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/local-ip-url@${{steps.create_tag.outputs.versionNumber}}/file/README.md) + [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/local-ip-url@${{steps.create_tag.outputs.versionNumber}}/file/README.md) Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/local-ip-url/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html