mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
build: release v1.4.7
This commit is contained in:
parent
36dfd1ae02
commit
9a0a6bfba3
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -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
|
||||||
|
4
.github/workflows/prettier.yml
vendored
4
.github/workflows/prettier.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: Prettier
|
name: Prettier
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ main ]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user