Skip to content

Commit

Permalink
config for upload to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
paultuckey committed Sep 3, 2023
1 parent 2a672cd commit 178650a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3

# Do manually for now (Sep 2023)


# - name: Set up Java for publishing to Maven Central Repository
# uses: actions/setup-java@v3
# with:
Expand All @@ -22,12 +26,12 @@ jobs:
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up Java for publishing to GitHub Packages
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'zulu'
# - name: Publish to GitHub Packages
# run: mvn --batch-mode deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 21 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>org.tuckey</groupId>
Expand All @@ -16,11 +17,11 @@
<name>Paul Tuckey</name>
</organization>

<!-- <parent>-->
<!-- <groupId>org.sonatype.oss</groupId>-->
<!-- <artifactId>oss-parent</artifactId>-->
<!-- <version>7</version>-->
<!-- </parent>-->
<!-- <parent>-->
<!-- <groupId>org.sonatype.oss</groupId>-->
<!-- <artifactId>oss-parent</artifactId>-->
<!-- <version>7</version>-->
<!-- </parent>-->

<properties>
<app.manual-version>5.0</app.manual-version>
Expand Down Expand Up @@ -53,11 +54,22 @@
</issueManagement>

<distributionManagement>
<!-- <repository>-->
<!-- <id>github</id>-->
<!-- <name>GitHub Packages</name>-->
<!-- <url>https://maven.pkg.github.com/paultuckey/urlrewritefilter</url>-->
<!-- </repository>-->

<!-- for ossrh ensure ~/.m2/settings.xml is set with auth -->
<!-- https://oss.sonatype.org/ -->
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/paultuckey/urlrewritefilter</url>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<build>
Expand Down

0 comments on commit 178650a

Please sign in to comment.