Skip to content

Aliyun OSS Auto Upload

Actions
Provide a description here
v2.0.7
Latest
Star (0)

Tags

 (1)

Aliyun OSS Auto Upload

Easily upload files to Aliyun OSS from GitHub Actions

Usage

steps:
- uses: actions/checkout@master
- uses: tiyee/[email protected]
    with:
      # aliyun config
      region: oss-cn-beijing
      access-key-id: ${{ secrets.ACCESS_KEY_ID }}
      access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }}
      bucket: ${{ secrets.BUCKET }}
      secure: true
      # deploy config
      local-folder: dist # local folder
      remote-dir: /

Arguments

This action supports eight inputs from the user, most of which are required: region, access-key-id, access-key-secret, bucket, secure, entry, remote-dir, path-rewrite. Their descriptions and default values are listed below:

Input Description Usage default
region the bucket data region location Required
access-key-id access key you create on aliyun console website Required
access-key-secret access secret you create Required
bucket the default bucket you want to access If you don't have any bucket, please create Required
secure instruct OSS client to use HTTPS (secure: true) or HTTP (secure: false) protocol Optional true
local-folder You need to upload files of this folder to OSS ,RECURSIVE alse,like dist/html
remote-dir Directory path transferred to OSS Optional \

Example

name: Example workflow for AliyunOSS
on: [push]
jobs:
  Release:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
        with:
          fetch-depth: 2

      - name: Use Node.js 12.x
        uses: actions/setup-node@v1
        with:
          node-version: '12.x'

      - name: Build Project
        run: npm install && npm run build

      - name: Deploy OSS
        uses: tiyee/[email protected]
        with:
          # aliyun config
          region: oss-cn-beijing
          access-key-id: ${{ secrets.ACCESS_KEY_ID }}
          access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }}
          bucket: ${{ secrets.BUCKET }}
          secure: true
          # deploy config
          local-folder: dist
          remote-dir: /

Aliyun OSS Auto Upload 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

Provide a description here
v2.0.7
Latest

Tags

 (1)

Aliyun OSS Auto Upload 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.