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
Download the latest version Feel free to put
./uploader /usr/docsIt's ok
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
This script supports automatic deployment of Github Actions
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/markdown-image-uploader@v2.0.1
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