Skip to content

Commit

Permalink
updating publish parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Sep 11, 2023
1 parent 14229a3 commit 4817576
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/github-action-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package

deploy:
publish:
needs: [ "build" ]
if: contains(github.ref_name, 'dev/')
permissions:
Expand All @@ -27,7 +27,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
java-version: '17'
Expand All @@ -38,5 +37,5 @@ jobs:
GITHUB_USERNAME: makbn
GITHUB_ACTOR: makbn
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -e --settings settings.xml deploy
run: mvn --settings settings.xml deploy

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<name>GitHub makbn Apache Maven Packages</name>
<url>https://maven.pkg.github.com/makbn/java_leaflet</url>
</repository>
</distributionManagement>
Expand Down
8 changes: 4 additions & 4 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<name>GitHub makbn Apache Maven Packages</name>
<url>https://maven.pkg.github.com/makbn/java_leaflet</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
Expand Down

0 comments on commit 4817576

Please sign in to comment.