Skip to content

Commit

Permalink
Add GitHub release action
Browse files Browse the repository at this point in the history
  • Loading branch information
moarychan authored and stliu committed Aug 28, 2023
1 parent 5c67676 commit 2f97b13
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: ./mvnw clean package
run: ./mvnw -P release clean package
- uses: ncipollo/release-action@v1
with:
artifacts: "target/*.jar"
artifacts: "spring-petclinic-**/target/*.jar"
33 changes: 32 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,38 @@
<module>spring-petclinic-api-gateway</module>
</modules>
</profile>

<profile>
<!--
This profile file is used to release jar files to GitHub release, it's required to download the jar for Azure Spring Apps deployment.
It's used for quickstart ARM template: https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.appplatform/microservice-apps-enterprise-plan
-->
<id>release</id>
<modules>
<module>spring-petclinic-admin-server</module>
<module>spring-petclinic-customers-service</module>
<module>spring-petclinic-vets-service</module>
<module>spring-petclinic-visits-service</module>
<module>spring-petclinic-config-server</module>
<module>spring-petclinic-discovery-server</module>
<module>spring-petclinic-api-gateway</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--
This profile file is used to configure and deploy applications to the Azure Spring Apps, only the following five applications are involved.
Expand Down

0 comments on commit 2f97b13

Please sign in to comment.