Deploy static pages to Ali OSS
Required oss region.
Required Your accessKeyId.
Required Your accessKeySecret.
Required Your bucket name.
Directory under bucket.
Required File directory to be uploaded. Default "dist"
.
Success Count.
Fail Count.
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."