From 7ad08765c1265477d59972f5a3ac1a274a742f41 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 24 Jul 2024 14:41:09 +0200 Subject: [PATCH] Add nexus env var --- .github/.m2/settings.xml | 25 ------------------------- .github/workflows/release.yml | 28 ++-------------------------- 2 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 .github/.m2/settings.xml diff --git a/.github/.m2/settings.xml b/.github/.m2/settings.xml deleted file mode 100644 index 0b7a31f9..00000000 --- a/.github/.m2/settings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - central - ${env.NEXUS_USER} - ${env.NEXUS_PASSWORD} - - - - - def - - true - - - 0x${env.GPG_KEY_ID_GITHUB_TECHUSER}! - ${env.GPG_PASSPHRASE} - - - - - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d1ee0d9..f8d87d67 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,31 +57,7 @@ jobs: env: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} MAVEN_GPG_KEY_FINGERPRINT: '0x0181A4828FA27B6BE6F1F5A68611CD28F472E006!' + NEXUS_USER: ${{ secrets.NEXUS_USER }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} run: | mvn -B release:prepare release:perform -Darguments="-DskipTests" - -# - name: Test -# run: | -# gpg --sign pom.xml -# git add pom.xml.gpg -# git commit -m "Sign pom" -# git push - -# - name: Release -# run: | -# mvn release:prepare -# -# - name: Release -# uses: speter555/gh-action-mvn-release-main@v0.31.0 -# with: -# NEXUS_USER: ${{ secrets.NEXUS_USER }} -# NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} -# ARTIFACT_STORE_SERVER_ID: '' -# SETTINGS_XML_PATH: '.github/.m2/settings.xml' -# GPG_KEY_ID_GITHUB_TECHUSER: '8611CD28F472E006' -# GPG_SIGNING_KEY_GITHUB_TECHUSER: ${{ secrets.GPG_SIGNING_KEY_GITHUB_TECHUSER }} -# SSH_PRIVATE_KEY_GITHUB_TECHUSER: ${{ secrets.SSH_PRIVATE_KEY_GITHUB_TECHUSER }} -# TECH_USER_USERNAME: 'gnodet' -# TECH_USER_EMAIL: 'gnodet@gmail.com' -# JAVA_VERSION: '22' -# JAVA_DISTRIBUTION: 'temurin'