Skip to content

stevenzg/ali-oss-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ali-oss-action

Deploy static pages to Ali OSS

Inputs

region

Required oss region.

accessKeyId

Required Your accessKeyId.

accessKeySecret

Required Your accessKeySecret.

bucket

Required Your bucket name.

bucketPath

Directory under bucket.

filePath

Required File directory to be uploaded. Default "dist".

Outputs

successCount

Success Count.

failCount

Fail Count.

Example usage

name: 'deploy-to-ali-oss'
on:
  push:
    branches:
      - master

jobs:
  ali_oss_deploy:
    runs-on: ubuntu-latest
    name: Deploy Pages to Ali OSS
    steps:
      - name: Checkout
        uses: actions/checkout@master
      - run: yarn install
      - run: yarn build
      - name: Deploy
        id: DeployOss
        uses: stevenzg/ali-oss-action@master
        with:
          region: ${{ secrets.region }}
          accessKeyId: ${{ secrets.accessKeyId }}
          accessKeySecret: ${{ secrets.accessKeySecret }}
          bucket: ${{ secrets.bucket }}
          bucketPath: 'bucket sub path'
          filePath: 'dist'
      - name: Deploy Result
        run: echo "${{ steps.DeployOss.outputs.successCount }} success, ${{ steps.DeployOss.outputs.failCount }} fail."

About

Aliyun OSS action.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published