Skip to content

Commit

Permalink
Refactored code
Browse files Browse the repository at this point in the history
updated for actions publish
  • Loading branch information
pkarkar committed Jun 17, 2022
1 parent 88547b0 commit fb8def8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn --settings settings.xml deploy
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ github.token }}
12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.test</groupId>
<distributionManagement>
<repository>
<id>github</id>
<name>FeedsGateway</name>
<url>https://maven.pkg.github.com/parimal-karkar/feedsgateway</url>
</repository>
</distributionManagement>

<groupId>com.xtream.apps</groupId>
<artifactId>feedsgateway</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down

0 comments on commit fb8def8

Please sign in to comment.