Skip to content

Commit

Permalink
[releng] Fix the publish part of the workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Fasani <[email protected]>
  • Loading branch information
lfasani committed Nov 28, 2024
1 parent 94af3c3 commit e7572fb
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: mvn -U -B -e clean verify -f backend/pom.xml --settings settings.xml

- name: Publish the backend
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ github.token }}
Expand Down
8 changes: 0 additions & 8 deletions backend/deeplab-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
<java.version>17</java.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<repositories>
<repository>
<id>github-sirius-web</id>
Expand Down
16 changes: 4 additions & 12 deletions backend/deeplab-frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<relativePath /> <!-- lookup parent from repository -->
<groupId>deeplab</groupId>
<artifactId>deeplab-parent</artifactId>
<version>2024.11.0</version>
<relativePath>../deeplab-parent</relativePath>
</parent>
<groupId>deeplab</groupId>
<artifactId>deeplab-frontend</artifactId>
Expand All @@ -31,14 +31,6 @@
<java.version>17</java.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
12 changes: 7 additions & 5 deletions backend/deeplab-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
<sirius.version>7.2.0-SNAPSHOT</sirius.version>
</properties>

<distributionManagement>
<repository>
<id>github-pepper</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<repositories>
<repository>
Expand Down Expand Up @@ -70,11 +77,6 @@
<artifactId>sirius-components-view-builder</artifactId>
<version>${sirius.web.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.sirius</groupId>
<artifactId>sirius-components-collaborative-trees</artifactId>
<version>${sirius.web.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.sirius</groupId>
<artifactId>sirius-components-trees</artifactId>
Expand Down
8 changes: 0 additions & 8 deletions backend/deeplab-projectmanagement-edit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
<java.version>17</java.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.eclipse.core</groupId>
Expand Down
8 changes: 0 additions & 8 deletions backend/deeplab-projectmanagement-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@
<sirius.version>7.2.0-SNAPSHOT</sirius.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<repositories>
<repository>
<id>Eclipse Sirius</id>
Expand Down
8 changes: 0 additions & 8 deletions backend/deeplab-projectmanagement/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
<java.version>17</java.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.eclipse.emf</groupId>
Expand Down
7 changes: 7 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
<description>Pepper for project management</description>
<packaging>pom</packaging>

<distributionManagement>
<repository>
<id>github-pepper</id>
<name>ObeoNetwork Pepper</name>
<url>https://maven.pkg.github.com/ObeoNetwork/pepper</url>
</repository>
</distributionManagement>

<!-- reminder
Expand Down
16 changes: 12 additions & 4 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
Expand All @@ -14,8 +13,12 @@
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>github-sirius-web</id>
Expand All @@ -42,5 +45,10 @@
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
<server>
<id>github-pepper</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit e7572fb

Please sign in to comment.