Skip to content

yly24/ali-oss-utils

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload to OSS

上传单个文件或文件夹所有文件到 OSS

Inputs

  • access-key-id: OSS AccessKeyId
  • access-key-secret: OSS AccessKeySecret
  • region: 区域,如 oss-cn-shenzhen
  • bucket:
  • source: 本地资源路径
  • target: OSS 对象存储路径

Outputs

  • url: 文件在 OSS 上的 url。上传多个文件时,多个 url 用逗号隔开。

Usage

- name: Upload to oss
  id: upload_to_oss
  uses: yinlinyang/[email protected]
  with:
    access-key-id: ${{ secrets.OSS_KEY_ID }}
    access-key-secret: ${{ secrets.OSS_KEY_SECRET }}
    region: oss-cn-shenzhen
    bucket: project
    source: /
    target: /

About

Upload assets to OSS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%