build: release v1.4.7

This commit is contained in:
yanglbme 2020-12-02 14:37:05 +08:00
parent 36dfd1ae02
commit 9a0a6bfba3
3 changed files with 5 additions and 8 deletions

View File

@ -1,7 +1,9 @@
name: Build and Deploy name: Build and Deploy
on: on:
push: push:
branches: [ main ] branches: [ main ]
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,10 +1,8 @@
name: Prettier name: Prettier
on: on:
pull_request:
push: push:
branches: branches: [ main ]
- main
jobs: jobs:
prettier: prettier:

View File

@ -127,10 +127,7 @@ async function qiniuUpload(file) {
}); });
const dir = path ? `${path}/` : ""; const dir = path ? `${path}/` : "";
const dateFilename = dir + getDateFilename(file.name); const dateFilename = dir + getDateFilename(file.name);
const config = { const observable = qiniu.upload(file, dateFilename, token, {}, { region });
region,
};
const observable = qiniu.upload(file, dateFilename, token, {}, config);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
observable.subscribe({ observable.subscribe({
next: (result) => { next: (result) => {