Skip to content
upload-cloud

GitHub Action

aliyun-oss-upload-action

1.0.1 Latest version

aliyun-oss-upload-action

upload-cloud

aliyun-oss-upload-action

Upload files to aliyun oss

Installation

Copy and paste the following snippet into your .yml file.

              

- name: aliyun-oss-upload-action

uses: chf007/aliyun-oss-upload-action@1.0.1

Learn more about this action in chf007/aliyun-oss-upload-action

Choose a version

Aliyun OSS Upload Action

Upload files to aliyun oss.

Inputs

source-dir

The path of the source dir.

You do not need to add a slash / at the end of the path.

dest-dir

The path of the dest dir.

You do not need to add a slash / at the end of the path.

bucket

Required The name of the aliyun oss bucket.

region

Required The name of the aliyun oss region.

endpoint

The name of the aliyun oss endpoint.

Example usage

uses: chf007/aliyun-oss-upload-action@main
env:
  OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
  OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
with:
  source-dir: 'dist'
  dest-dir: 'apps/app-test/v1'
  bucket: 'static'
  region: 'oss-cn-shenzhen'

Does not support Windows runner