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 Nov 27, 2023
1 parent 853b272 commit 934259c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 934259c

Please sign in to comment.