diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-11 14:38:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-11 14:38:07 +0200 |
commit | eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f (patch) | |
tree | 0177c8c65d0a343293b88a5a1961aff80dc8eff0 /scripts | |
parent | 5b075bc54957b08c10af9cc7364b49f8a598cadb (diff) | |
download | PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.tar.gz PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.tar.zst PeerTube-eb8bd9ab1a7d639ccba5d12c4382b79c0f5b9a3f.zip |
Try to fix openapi script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/openapi-clients.sh | 3 | ||||
-rwxr-xr-x | scripts/release.sh | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/openapi-clients.sh b/scripts/openapi-clients.sh index c799658e3..1047e1477 100755 --- a/scripts/openapi-clients.sh +++ b/scripts/openapi-clients.sh | |||
@@ -59,11 +59,12 @@ for lang in ${API_LANGS//:/ } ; do | |||
59 | git clone "https://${host_path}" "$out_dir" | 59 | git clone "https://${host_path}" "$out_dir" |
60 | fi | 60 | fi |
61 | 61 | ||
62 | npx openapi-generator generate \ | 62 | npx @openapitools/openapi-generator-cli generate \ |
63 | -i support/doc/api/openapi.yaml \ | 63 | -i support/doc/api/openapi.yaml \ |
64 | -c "${lang_dir}/def.yaml" \ | 64 | -c "${lang_dir}/def.yaml" \ |
65 | -t "${lang_dir}" \ | 65 | -t "${lang_dir}" \ |
66 | -g "$lang" \ | 66 | -g "$lang" \ |
67 | --skip-validate-spec | ||
67 | --git-host "${API_REPO_HOST}" \ | 68 | --git-host "${API_REPO_HOST}" \ |
68 | --git-user-id "${API_URL_USERNAME}" \ | 69 | --git-user-id "${API_URL_USERNAME}" \ |
69 | --git-repo-id "${git_repo_id}" \ | 70 | --git-repo-id "${git_repo_id}" \ |
diff --git a/scripts/release.sh b/scripts/release.sh index 195f19b45..6423d17ee 100755 --- a/scripts/release.sh +++ b/scripts/release.sh | |||
@@ -60,8 +60,6 @@ fi | |||
60 | 60 | ||
61 | npm version -f --no-git-tag-version --no-commit-hooks "$1" | 61 | npm version -f --no-git-tag-version --no-commit-hooks "$1" |
62 | 62 | ||
63 | ./scripts/openapi-peertube-version.sh | ||
64 | |||
65 | git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version" | 63 | git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version" |
66 | git tag -s -a "$version" -m "$version" | 64 | git tag -s -a "$version" -m "$version" |
67 | 65 | ||