Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ jobs:
git config user.name "Airlift Release"
git config user.email "airlift-bot@airlift.io"

- name: Verify release configuration
env:
MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }}
MAVENCENTRAL_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_TOKEN }}
run: |
./mvnw -B njord:status | tee "${RUNNER_TEMP}/njord-status.log"
grep -F "Repository Auth: Present" "${RUNNER_TEMP}/njord-status.log"
grep -F "Effective URL: njord:template:release-sca" "${RUNNER_TEMP}/njord-status.log"
Comment thread
dain marked this conversation as resolved.

- name: Prepare release
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
Expand Down
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-s
${session.rootDirectory}/.mvn/settings.xml
Comment thread
dain marked this conversation as resolved.
16 changes: 16 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<settings>
<pluginGroups>
<pluginGroup>eu.maveniverse.maven.plugins</pluginGroup>
</pluginGroups>
<servers>
<server>
<id>sonatype-central-portal</id>
<username>${env.MAVENCENTRAL_USERNAME}</username>
<password>${env.MAVENCENTRAL_PASSWORD}</password>
<configuration>
<njord.publisher>sonatype-cp</njord.publisher>
<njord.releaseUrl>njord:template:release-sca</njord.releaseUrl>
</configuration>
</server>
</servers>
</settings>
Loading