集成swagger

This commit is contained in:
xiangheng
2023-12-01 00:50:48 +08:00
parent ba8b56f68c
commit f109a7ea86
10 changed files with 209 additions and 14 deletions

View File

@@ -10,6 +10,16 @@ const releasePath = path.resolve(cwd, releaseRelativePath)
const goProjectPath = path.resolve(cwd, '../server')
async function build_go() {
await execaCommand('swag fmt', {
stdio: 'inherit',
encoding: 'utf-8',
cwd: goProjectPath
})
await execaCommand('swag init', {
stdio: 'inherit',
encoding: 'utf-8',
cwd: goProjectPath
})
await execaCommand('goreleaser release --snapshot --clean', {
stdio: 'inherit',
encoding: 'utf-8',