Skip to content

Commit

Permalink
Update post/prepare release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
micryc committed Mar 20, 2024
1 parent 7bfde2b commit a1614e3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CI/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ mvn versions:commit

sc_find="version\: $SC_VERSION"
sc_replace="version: $SC_NEXT_VERSION-SNAPSHOT"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/resources/openapi.yaml
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yaml



sc_find="version\: $SC_VERSION"
sc_replace="version: $SC_NEXT_VERSION-SNAPSHOT"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/design-first/petstore.yaml
8 changes: 7 additions & 1 deletion CI/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ mvn versions:commit
#####################
sc_find="version\: $SC_VERSION\-SNAPSHOT"
sc_replace="version: $SC_VERSION"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/resources/openapi.yaml
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/design-first/petstore.yaml



sc_find="version\: $SC_VERSION\-SNAPSHOT"
sc_replace="version: $SC_VERSION"
sed -i -e "s/$sc_find/$sc_replace/g" $CUR/src/main/webapp/code-first/openapi.yaml

#####################
### build and test maven ###
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>swagger-petstore-v31</artifactId>
<packaging>war</packaging>
<name>Swagger Petstore V3.1</name>
<version>1.0.3</version>
<version>1.0.3-SNAPSHOT</version>
<url>https://github.com/swagger-api/swagger-petstore</url>
<scm>
<connection>scm:git:[email protected]:swagger-api/swagger-petstore.git</connection>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/code-first/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
license:
name: Apache 2.0 AND (MIT OR GPL-2.0-only)
identifier: Apache-2.0 AND (MIT OR GPL-2.0-only)
version: 1.0.3
version: 1.0.3-SNAPSHOT
summary: Pet Store 3.1
x-namespace: swagger
externalDocs:
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/design-first/petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ info:
license:
name: Apache 2.0 AND (MIT OR GPL-2.0-only)
identifier: Apache-2.0 AND (MIT OR GPL-2.0-only)
version: 1.0.3
version: 1.0.3-SNAPSHOT
x-namespace: Swagger
externalDocs:
description: Find out more about Swagger
Expand Down

0 comments on commit a1614e3

Please sign in to comment.