diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-14 14:14:14 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-14 14:14:14 +0100 |
commit | 7b62b1d5f012ace46c8651b98efeb5be9f35455e (patch) | |
tree | 58729dae12b53c0f368212ce334826b8093c6f4a /scripts/openapi-peertube-version.sh | |
parent | 68ca61941e3a7ca4c018566d2c496afd27dbd76d (diff) | |
parent | 002df3813d13c5accd36d7943af2b17376a6d1ac (diff) | |
download | PeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.tar.gz PeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.tar.zst PeerTube-7b62b1d5f012ace46c8651b98efeb5be9f35455e.zip |
OpenAPI clients generation
See merge request framasoft/peertube/PeerTube!28, which continued https://github.com/Chocobozzz/PeerTube/pull/2060
Diffstat (limited to 'scripts/openapi-peertube-version.sh')
-rwxr-xr-x | scripts/openapi-peertube-version.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/openapi-peertube-version.sh b/scripts/openapi-peertube-version.sh index 4eb481e64..49154a5f3 100755 --- a/scripts/openapi-peertube-version.sh +++ b/scripts/openapi-peertube-version.sh | |||
@@ -4,3 +4,8 @@ | |||
4 | PACKAGE_VERSION=$(node -p "require('./package.json').version") | 4 | PACKAGE_VERSION=$(node -p "require('./package.json').version") |
5 | 5 | ||
6 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml | 6 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml |
7 | |||
8 | # Sets the package version for libs | ||
9 | echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml | ||
10 | echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml | ||
11 | echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml | ||