Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
upload-cloud

GitHub Action

aliyun-oss-upload-action

1.0.0

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.0

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

Required The path of the source dir.

You do not need to add a slash / at the end of the path. When running under a Windows runner, the path needs to be changed to Windows-style.

dest-dir

Required 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'