Skip to content

Commit

Permalink
Update Maven build
Browse files Browse the repository at this point in the history
  • Loading branch information
albilu committed Nov 11, 2024
1 parent 8da1851 commit 88cdf99
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 88cdf99

Please sign in to comment.