Skip to content

Commit f795ed6

Browse files
committed
chore: add sponsor badge.
1 parent 52c766d commit f795ed6

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ jobs:
2626

2727
build:
2828
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
31+
id-token: write
2932
steps:
3033
- uses: actions/checkout@v3
3134
- uses: actions/setup-node@v3
3235
with:
33-
node-version: 16
36+
node-version: 18
3437
registry-url: 'https://registry.npmjs.org'
3538

3639
- run: npm install --unsafe-perm
@@ -86,6 +89,8 @@ jobs:
8689
name: ${{ steps.changelog.outputs.tag }}
8790
tag: ${{ steps.changelog.outputs.tag }}
8891
body: |
92+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
93+
8994
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-monorepo-template/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
9095
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
9196
@@ -96,7 +101,7 @@ jobs:
96101
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./core/package.json
97102

98103

99-
- run: npm publish --access public
104+
- run: npm publish --access public --provenance
100105
name: 📦 @wcj/code-image publish to NPM
101106
continue-on-error: true
102107
env:
@@ -145,19 +150,19 @@ jobs:
145150
docker tag code-image ${{ secrets.DOCKER_USER }}/code-image:${{needs.build.outputs.version}}
146151
docker push ${{ secrets.DOCKER_USER }}/code-image:${{needs.build.outputs.version}}
147152
148-
# Create Docker Image in GitHub
149-
- name: Login to GitHub registry
150-
run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
153+
# # Create Docker Image in GitHub
154+
# - name: Login to GitHub registry
155+
# run: echo ${{ github.token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
151156

152-
- name: Build docker image
153-
run: docker build -t ghcr.io/jaywcjlove/code-image:latest .
157+
# - name: Build docker image
158+
# run: docker build -t ghcr.io/jaywcjlove/code-image:latest .
154159

155-
- name: Publish to GitHub registry
156-
run: docker push ghcr.io/jaywcjlove/code-image:latest
160+
# - name: Publish to GitHub registry
161+
# run: docker push ghcr.io/jaywcjlove/code-image:latest
157162

158-
- name: Tag docker image (beta) and publish to GitHub registry
159-
if: needs.build.outputs.successful
160-
run: |
161-
echo "version: v${{ needs.build.outputs.version }}"
162-
docker tag ghcr.io/jaywcjlove/code-image:latest ghcr.io/jaywcjlove/code-image:${{needs.build.outputs.version}}
163-
docker push ghcr.io/jaywcjlove/code-image:${{needs.build.outputs.version}}
163+
# - name: Tag docker image (beta) and publish to GitHub registry
164+
# if: needs.build.outputs.successful
165+
# run: |
166+
# echo "version: v${{ needs.build.outputs.version }}"
167+
# docker tag ghcr.io/jaywcjlove/code-image:latest ghcr.io/jaywcjlove/code-image:${{needs.build.outputs.version}}
168+
# docker push ghcr.io/jaywcjlove/code-image:${{needs.build.outputs.version}}

core/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Code Image
22
===
33

4+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
45
[![Build & Deploy](https://github.com/jaywcjlove/code-image/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/code-image/actions/workflows/ci.yml)
56
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/code-image?logo=docker)](https://hub.docker.com/r/wcjiang/code-image)
67
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/code-image?logo=docker)](https://hub.docker.com/r/wcjiang/code-image)

core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Create beautiful images of your source code..",
55
"author": "Kenny Wong <wowohoo@qq.com>",
66
"homepage": "https://jaywcjlove.github.io/code-image",
7+
"funding": "https://jaywcjlove.github.io/#/sponsor",
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/jaywcjlove/code-image.git"

0 commit comments

Comments
 (0)