Sign inSign up

reprover/markdown-image-uploader

By reprover

Updated about 5 years ago

Automatic Trans Local Image of markdown file to a place

Image
0

699

reprover/markdown-image-uploader repository overview

MARKDOWN Picture automatic upload image

For Chinese Version: Here

You can automatically modify the local pictures and remote pictures in markdown to custom pictures.

Currently only supports Alibaba Cloud OSS

cli

Download the latest version Feel free to put

./uploader /usr/docs

It's ok

Environments

CLIENT_NAME aliyun/qiniu

ENDPOINT endpoint value for aliyun, and zone for qiniu,such as Huabei/Beimei/Xinjiapo

ACCESS_KEY ak

ACCESS_SECRET sk

BUCKET_NAME bucket name

VISIT_URL the url of visit. IMPORTANT! example: https://example.org

Github Actions

This script supports automatic deployment of Github Actions

Usage

Create the above variables in your warehouse Settings -> Secrets (of course, you can write directly like insensitive ones)

Add in your actions.yml:

-uses: rxrw/[email protected]
  with:
    content_path: "content"
    client_name: "qiniu"
    access_key: ${{ secrets.ACCESS_KEY }}
    access_secret: ${{ secrets.ACCESS_SECRET }}
    endpoint: ${{ secrets.ENDPOINT }}
    bucket_name: ${{ secrets.BUCKET_NAME }}
    visit_url: ${{ secrets.VISIT_URL }}

Continue to compile other content, the output of this script is the markdown you need

Tag summary

Content type

Image

Digest

Size

8.8 MB

Last updated

about 5 years ago

docker pull reprover/markdown-image-uploader