Skip to content

Commit

Permalink
Merge pull request #30 from ADORSYS-GIS/feat/deploy-artifact
Browse files Browse the repository at this point in the history
Feat/deploy artifact
  • Loading branch information
NkwaTambe authored Nov 12, 2024
2 parents bb7c557 + ae7bcf8 commit 9ac2b49
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 9 deletions.
44 changes: 43 additions & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
<server>
<id>github-ledgers</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.LEDGER_READ_SECRET }}</password>
<password>${{ secrets.WEBANK_ACCESS_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
Expand Down Expand Up @@ -164,4 +164,46 @@ jobs:
run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}"


# Automatically Deploy artifacts to github packages

# publish:
# name: Deploy Artifacts
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'


# - name: Cache Maven packages
# uses: actions/cache@v4
# with:
# path: ~/.m2
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-m2


# - name: Set up Maven settings.xml
# run: |
# mkdir -p ~/.m2
# echo "<settings>
# <servers>
# <server>
# <id>github-ledgers</id>
# <username>${{ github.actor }}</username>
# <password>${{ secrets.WEBANK_ACCESS_TOKEN }}</password>
# </server>
# </servers>
# </settings>" > ~/.m2/settings.xml

# - name: Publish package
# run: mvn -ntp -Pgitlab-maven -DskipTests -U deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<modelVersion>4.0.0</modelVersion>
<groupId>de.adorsys.webank</groupId>
<artifactId>webank-BankAccount</artifactId>
<artifactId>webank-bank-account-pom</artifactId>
<version>0.1-SNAPSHOT</version>

<modules>
Expand Down Expand Up @@ -623,11 +623,11 @@
</build>

<scm>
<connection>scm:git@git.adorsys.de:adorsys/xs2a/ledgers.git</connection>
<developerConnection>scm:git:[email protected]:adorsys/xs2a/ledgers.git</developerConnection>
<url>[email protected]:adorsys/xs2a/ledgers.git</url>
<tag>HEAD</tag>
</scm>
<connection>scm:git:https://github.com/ADORSYS-GIS/webank-BankAccount</connection>
<developerConnection>scm:git:https://github.com/ADORSYS-GIS/webank-BankAccount</developerConnection>
<url>https://github.com/ADORSYS-GIS/webank-BankAccount</url>
<tag>HEAD</tag>
</scm>

<profiles>
<profile>
Expand Down
5 changes: 4 additions & 1 deletion webank-bank-account/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<parent>
<groupId>de.adorsys.webank</groupId>
<artifactId>webank-BankAccount</artifactId>
<artifactId>webank-bank-account-pom</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Expand All @@ -27,4 +27,7 @@
</modules>

<packaging>pom</packaging>



</project>
5 changes: 4 additions & 1 deletion webank-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<parent>
<groupId>de.adorsys.webank</groupId>
<artifactId>webank-BankAccount</artifactId>
<artifactId>webank-bank-account-pom</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Expand All @@ -23,4 +23,7 @@
</modules>

<packaging>pom</packaging>



</project>

0 comments on commit 9ac2b49

Please sign in to comment.