From 88cdf999a523f57dadd3fffa4b1e00bd9b903920 Mon Sep 17 00:00:00 2001 From: albilu <35330562+albilu@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:45:13 +0100 Subject: [PATCH] Update Maven build --- .github/workflows/maven.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3bc15cd..45472cb 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -61,6 +61,16 @@ jobs: run: | sed -i "s/OpenIDE-Module-Specification-Version:.*/OpenIDE-Module-Specification-Version: ${{ env.RELEASE_VERSION }}/" src/main/nbm/manifest.mf + - name: Build NBM + run: | + mvn -B clean deploy -Dnext.version=${{ env.RELEASE_VERSION }} + echo "SIZE=$(wc -c target/nbm/fastsearch-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + GITHUB_TOKEN: ${{ github.token }} + - name: Create Release uses: actions/create-release@v1 id: create_release @@ -72,16 +82,6 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} - - name: Build NBM - run: | - mvn -B clean deploy -Dnext.version=${{ env.RELEASE_VERSION }} - echo "SIZE=$(wc -c target/nbm/fastsearch-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} - MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - GITHUB_TOKEN: ${{ github.token }} - - name: Attach NBM uses: actions/upload-release-asset@v1 with: