66# 1. Another pipeline (e.g. pbinitiative/zenbpm) updates api.yaml in this
77# repo and commits it to main.
88# 2. That same pipeline pushes a matching version tag to this repo.
9- # 3. This workflow fires, bumps pom.xml to match the tag , builds, and
10- # deploys to the configured Maven repository .
9+ # 3. This workflow fires, stamps the version , builds, runs tests , and
10+ # creates a GitHub Release .
1111#
12- # Requirements (set up in GitHub repo Settings → Secrets and variables → Actions):
13- # No extra secrets are required beyond the default GITHUB_TOKEN .
14- # If you also deploy to Maven Central, add:
15- # MAVEN_CENTRAL_USERNAME, MAVEN_CENTRAL_PASSWORD, GPG_PRIVATE_KEY, GPG_PASSPHRASE
12+ # Publishing is handled by JitPack — no deploy step needed.
13+ # JitPack picks up the GitHub Release tag automatically and builds on demand .
14+ #
15+ # Requirements: no secrets beyond the default GITHUB_TOKEN.
1616# =============================================================================
1717
1818name : Release to Maven Repository
3333
3434permissions :
3535 contents : write # create GitHub Release
36- packages : write # deploy to GitHub Packages
3736
3837env :
3938 JAVA_VERSION : ' 8'
8079 java-version : ${{ env.JAVA_VERSION }}
8180 distribution : temurin
8281 cache : maven
83- # Server configuration for GitHub Packages deploy
84- server-id : github
85- server-username : MAVEN_USERNAME
86- server-password : MAVEN_PASSWORD
8782
8883 # ── Version bump (transient — not committed back) --------------------
8984 # The tag is the source of truth for the version. We apply it in-place
@@ -100,31 +95,6 @@ jobs:
10095 - name : Build & run tests
10196 run : mvn ${MAVEN_CLI_OPTS} clean verify
10297
103- # ── Deploy: GitHub Packages -------------------------------------------
104- - name : Deploy to GitHub Packages
105- run : >
106- mvn ${MAVEN_CLI_OPTS} deploy -DskipTests
107- -DaltDeploymentRepository=github::https://maven.pkg.github.com/${{ github.repository }}
108- env :
109- MAVEN_USERNAME : ${{ github.actor }}
110- MAVEN_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
111-
112- # ── Deploy: Maven Central (optional) ----------------------------------
113- # Uncomment this section and add the following secrets to your repo:
114- # MAVEN_CENTRAL_USERNAME, MAVEN_CENTRAL_PASSWORD, GPG_PRIVATE_KEY, GPG_PASSPHRASE
115- #
116- # Also add <distributionManagement> to your root pom.xml:
117- # <distributionManagement>
118- # <snapshotRepository><id>ossrh</id><url>...</url></snapshotRepository>
119- # <repository><id>ossrh</id><url>...</url></repository>
120- # </distributionManagement>
121- #
122- # - name: Deploy to Maven Central
123- # run: mvn ${MAVEN_CLI_OPTS} deploy -Prelease
124- # env:
125- # MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
126- # MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
127-
12898 # ── GitHub Release ----------------------------------------------------
12999 - name : Create GitHub Release
130100 uses : softprops/action-gh-release@v2
@@ -137,7 +107,15 @@ jobs:
137107 ### Changes
138108 - Updated api.yaml from ZenBPM ${{ steps.version.outputs.version }}
139109 - Generated updated REST client and DTOs
140- - Published to GitHub Packages
110+
111+ ### Using this release via JitPack
112+ ```xml
113+ <dependency>
114+ <groupId>com.github.pbinitiative.zenbpm-java-client</groupId>
115+ <artifactId>zenbpm-spring-boot-starter</artifactId>
116+ <version>${{ steps.version.outputs.version }}</version>
117+ </dependency>
118+ ```
141119 files : |
142120 zenbpm-client-core/target/*.jar
143121 zenbpm-spring-boot-starter/target/*.jar
0 commit comments