Skip to content

Commit 3a37ec2

Browse files
ci: Update package deployment adding renaming
This allows using the 1x version in conjunction with the 2x version
1 parent 0bef450 commit 3a37ec2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/mvn_packages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,16 @@ jobs:
3535
run: mvn --batch-mode deploy
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Publish package under 1x postfix
40+
run: |
41+
mvn deploy:deploy-file \
42+
-DgroupId=${{ env.GROUP_ID }} \
43+
-DartifactId=${{ env.ARTIFACT_ID }}-1x \
44+
-Dversion=${{ env.MAVEN_VERSION }} \
45+
-Dpackaging=jar \
46+
-Dfile=target/${{ env.ARTIFACT_ID }}-${{ env.MAVEN_VERSION }}.jar \
47+
-DrepositoryId=github \
48+
-Durl=https://maven.pkg.github.com/${{ github.repository }}
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ License.
2828
<artifactId>odm-specification-dpdescriptor-parser</artifactId>
2929
<name>ODM Specification Data Product Descriptor Parser</name>
3030
<description>Specification Parser for Data Product Descriptor of Open Data Mesh</description>
31-
<version>1.0.6</version>
31+
<version>1.0.7</version>
3232

3333
<distributionManagement>
3434
<repository>

0 commit comments

Comments
 (0)