Skip to content

Commit facc137

Browse files
committed
Use execution.id for maven deploy from CI
1 parent 2385022 commit facc137

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Publish to GitHub Packages Apache Maven
2929
run: |
30-
mvn deploy -Pdeploy-openapi-cdoc2-key-shares -s $GITHUB_WORKSPACE/settings.xml
31-
mvn deploy -Pdeploy-openapi-cdoc2-key-capsules -s $GITHUB_WORKSPACE/settings.xml
30+
mvn deploy -Dexecution.id=deploy-openapi-cdoc2-key-shares -s $GITHUB_WORKSPACE/settings.xml
31+
mvn deploy -Dexecution.id=deploy-openapi-cdoc2-key-capsules -s $GITHUB_WORKSPACE/settings.xml
3232
env:
3333
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,31 +118,6 @@
118118

119119
</executions>
120120
</plugin>
121-
<!-- if exact RELEASE version of module already exists, -->
122-
<!-- then skip deployment by setting maven.deploy.skip=true property for that module -->
123-
<!-- GitHub doesn't allow overwriting existing RELEASE modules and deploy will fail with HTTP 409 -->
124-
<plugin>
125-
<groupId>org.honton.chas</groupId>
126-
<artifactId>exists-maven-plugin</artifactId>
127-
<version>0.13.0</version>
128-
<executions>
129-
<execution>
130-
<phase>install</phase>
131-
<goals>
132-
<goal>remote</goal>
133-
</goals>
134-
<configuration>
135-
<!-- run only if deploy goal is specified in maven command line -->
136-
<requireGoal>deploy</requireGoal>
137-
</configuration>
138-
</execution>
139-
</executions>
140-
<configuration>
141-
<failIfNotMatch>false</failIfNotMatch>
142-
<userProperty>true</userProperty>
143-
<!--skip>true</skip-->
144-
</configuration>
145-
</plugin>
146121
<plugin>
147122
<artifactId>maven-install-plugin</artifactId>
148123
<version>3.1.2</version>
@@ -193,7 +168,7 @@
193168
<goal>deploy-file</goal>
194169
</goals>
195170
<configuration>
196-
<skip>false</skip>
171+
<skip>true</skip>
197172
<file>${project.basedir}/cdoc2-key-capsules-openapi.yaml</file>
198173
<groupId>ee.cyber.cdoc2.openapi</groupId>
199174
<artifactId>cdoc2-key-capsules-openapi</artifactId>

0 commit comments

Comments
 (0)