Skip to content

Commit

Permalink
chore: add sponsor badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 27, 2023
1 parent 4a219aa commit 5b47562
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
14 changes: 7 additions & 7 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# These are supported funding model platforms

github: [jaywcjlove]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/colors-cli
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
custom: https://jaywcjlove.github.io/sponsor.html
# github: [jaywcjlove]
# patreon: # Replace with a single Patreon username
# open_collective: # Replace with a single Open Collective username
# ko_fi: # Replace with a single Ko-fi username
# tidelift: npm/colors-cli
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
custom: https://jaywcjlove.github.io/#/sponsor
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'

- run: mkdir -p build
- run: cp -rp img build
- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output build/index.html
- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Colors CLI {{version}}"
menus:
Sponsor: https://jaywcjlove.github.io/#/sponsor
EOF
- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
source: README.md
output: build/index.html
github-corners: https://github.com/jaywcjlove/colors-cli
- run: npm install [email protected] -g
- run: idoc
- run: cp -rp img dist

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dist

- run: npm run test

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

# colors-cli

[![](https://jaywcjlove.github.io/sb/ico/npm.svg)](https://www.npmjs.com/package/colors-cli) [![build](https://github.com/jaywcjlove/colors-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/colors-cli/actions/workflows/ci.yml) [![NPM Downloads](https://img.shields.io/npm/dm/colors-cli.svg?style=flat)](https://www.npmjs.com/package/colors-cli)
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![](https://jaywcjlove.github.io/sb/ico/npm.svg)](https://www.npmjs.com/package/colors-cli)
[![build](https://github.com/jaywcjlove/colors-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/colors-cli/actions/workflows/ci.yml)
[![NPM Downloads](https://img.shields.io/npm/dm/colors-cli.svg?style=flat)](https://www.npmjs.com/package/colors-cli)


Terminal string styling done right. ಠ_ಠ
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.32",
"description": "Terminal string styling done right",
"homepage": "https://jaywcjlove.github.io/colors-cli/",
"funding": "https://jaywcjlove.github.io/#/sponsor",
"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
Expand Down

0 comments on commit 5b47562

Please sign in to comment.