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 25, 2023
1 parent c7dbae6 commit dc2f1d4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 11 deletions.
9 changes: 9 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +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/mocker-api
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
custom: https://jaywcjlove.github.io/#/sponsor
45 changes: 34 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- run: npm install
- run: npm run build
- run: mkdir -p build
# - run: mkdir -p build

- name: Overwrite test/overwrite.file.md
# uses: github-action-modify-file-content@main
Expand Down Expand Up @@ -50,14 +50,35 @@ jobs:
path: README.md
body: "different `GAMFC_TABEL` & `GAMFC_TABEL-END` (test)"

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
output: build/index.html
github-corners: https://github.com/jaywcjlove/github-action-modify-file-content
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏷️</text></svg>

# - name: Converts Markdown to HTML
# uses: jaywcjlove/markdown-to-html-cli@main
# with:
# output: build/index.html
# github-corners: https://github.com/jaywcjlove/github-action-modify-file-content
# favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏷️</text></svg>

- name: Create idoc config
run: |
cat > idoc.yml << EOF
site: "Modify File Content {{version}}"
menus:
Home: index.html
Sponsor: https://jaywcjlove.github.io/#/sponsor
footer: |
<a href="https://jaywcjlove.github.io/#/sponsor" target="_blank">Sponsor</a> •
<a href="https://jaywcjlove.github.io/create-tag-action" target="_blank">Create Tag</a> •
<a href="https://jaywcjlove.github.io/github-action-contributors" target="_blank">Contributors</a> •
<a href="https://jaywcjlove.github.io/github-action-read-file" target="_blank">Read File Content</a> •
<a href="https://jaywcjlove.github.io/generated-badges" target="_blank">Generated Badges</a>
<br />
Released under the MIT License. Copyright © {{idocYear}} Kenny Wong<br />
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}}
EOF
- run: npm install idoc@1.27.2 -g
- run: idoc

- name: Is a tag/release created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@main
Expand All @@ -70,7 +91,7 @@ jobs:
uses: jaywcjlove/changelog-generator@main

- name: gh-pages README.md
working-directory: build
working-directory: dist
run: |
cat > README.md << EOF
Website: https://jaywcjlove.github.io/github-action-modify-file-content
Expand All @@ -83,7 +104,7 @@ jobs:
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dist

- name: Generate Changelog
id: changelog
Expand All @@ -99,6 +120,8 @@ jobs:
package-path: ./package.json
release: true
body: |
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/github-action-modify-file-content/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Modify File Content
===

[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![test](https://github.com/jaywcjlove/github-action-modify-file-content/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/github-action-modify-file-content/actions/workflows/ci.yml)

Replace text content and submit content

Here is the example: update time <!--GAMFC-->2023-06-24 01:57:03<!--GAMFC-END-->
Expand Down

0 comments on commit dc2f1d4

Please sign in to comment.