Skip to content

Upload file to Ali oss

Actions
Upload assets to aliyun OSS
v1.0.10
Latest
Star (1)

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: /

Upload file to Ali oss is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Upload assets to aliyun OSS
v1.0.10
Latest

Upload file to Ali oss is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.