Skip to content

Upload files to OSS

Actions
Upload assets to aliyun OSS
v0.2.2
Latest
Star (2)

Upload to OSS

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

Inputs

  • key-id: OSS AccessKeyId
  • key-secret: OSS AccessKeySecret
  • region: 区域,如 oss-cn-shenzhen,和 endpoint 二选一
  • endpoint: 优先级高于 region,可填写内网节点、加速节点,和 region 二选一, only available in dbc0fe
  • bucket: Bucket 名称
  • asset-path: 本地资源路径
  • target-path: OSS 对象存储路径

Outputs

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

Usage

- name: Upload to oss
  id: upload_to_oss
  uses: tvrcgo/[email protected]
  with:
    key-id: ${{ secrets.OSS_KEY_ID }}
    key-secret: ${{ secrets.OSS_KEY_SECRET }}
    region: oss-cn-shenzhen
    bucket: tvrcgo
    asset-path: ./
    target-path: /github-actions/pika-boilerplate/

Upload files to 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
v0.2.2
Latest

Upload files to 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.