Skip to content

Commit

Permalink
build: release v1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Dec 2, 2020
1 parent 36dfd1a commit 9a0a6bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build and Deploy

on:
push:
branches: [ main ]
branches: [ main ]

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Prettier

on:
pull_request:
push:
branches:
- main
branches: [ main ]

jobs:
prettier:
Expand Down
5 changes: 1 addition & 4 deletions src/api/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ async function qiniuUpload(file) {
});
const dir = path ? `${path}/` : "";
const dateFilename = dir + getDateFilename(file.name);
const config = {
region,
};
const observable = qiniu.upload(file, dateFilename, token, {}, config);
const observable = qiniu.upload(file, dateFilename, token, {}, { region });
return new Promise((resolve, reject) => {
observable.subscribe({
next: (result) => {
Expand Down

0 comments on commit 9a0a6bf

Please sign in to comment.