File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 java-version : ' 17'
2020 distribution : ' temurin'
2121 cache : maven
22+
2223 - name : Build with Maven
23- run : mvn -B package --file pom.xml
24+ env :
25+ GH_MAVEN_REGISTRY_USER : ${{ secrets.PRIVATE_ACCESS_TOKEN_USER }}
26+ GH_MAVEN_REGISTRY_ACCESS_TOKEN : ${{ secrets.PRIVATE_ACCESS_TOKEN }}
27+ run : mvn -s settings.xml install
28+
29+ - name : Deploy to registry
30+ env :
31+ GH_MAVEN_REGISTRY_USER : ${{ secrets.PRIVATE_ACCESS_TOKEN_USER }}
32+ GH_MAVEN_REGISTRY_ACCESS_TOKEN : ${{ secrets.PRIVATE_ACCESS_TOKEN }}
33+ run : mvn --batch-mode -e -X -s settings.xml deploy -DskipTests
Original file line number Diff line number Diff line change 1+ <settings >
2+ <servers >
3+ <server >
4+ <id >github</id >
5+ <username >${env.GH_MAVEN_REGISTRY_USER}</username >
6+ <password >${env.GH_MAVEN_REGISTRY_ACCESS_TOKEN}</password >
7+ </server >
8+ <server >
9+ <id >github-marc</id >
10+ <username >${env.GH_MAVEN_REGISTRY_USER}</username >
11+ <password >${env.GH_MAVEN_REGISTRY_ACCESS_TOKEN}</password >
12+ </server >
13+ </servers >
14+ </settings >
You can’t perform that action at this time.
0 commit comments