diff --git a/.github/workflows/deploy-snapshot.yml b/.github/workflows/deploy-snapshot.yml index a46cfd7..5df9123 100644 --- a/.github/workflows/deploy-snapshot.yml +++ b/.github/workflows/deploy-snapshot.yml @@ -19,6 +19,11 @@ jobs: uses: actions/setup-java@v1 with: java-version: 17 + - name: Maven setup + uses: ./.github/actions/mvn-setup + with: + mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}} + mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} # Run maven verify - name: Maven verify run: mvn verify --batch-mode @@ -29,4 +34,4 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} nexus_username: ${{ secrets.OSSRH_USER }} - nexus_password: ${{ secrets.OSSRH_PASSWORD }} + nexus_password: ${{ secrets.OSSRH_PASSWORD }} \ No newline at end of file diff --git a/.github/workflows/release-and-deploy-release.yml b/.github/workflows/release-and-deploy-release.yml index 3b478d6..87dbec2 100644 --- a/.github/workflows/release-and-deploy-release.yml +++ b/.github/workflows/release-and-deploy-release.yml @@ -28,7 +28,7 @@ jobs: mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} # Install xmllint - name: Install dependencies - run: sudo apt-get install libxml2-utils + run: sudo apt-get update && sudo apt-get install libxml2-utils # Set git user name and email - name: Set up Git run: | @@ -56,6 +56,11 @@ jobs: uses: actions/setup-java@v1 with: java-version: 17 + - name: Maven setup + uses: ./.github/actions/mvn-setup + with: + mgnl_nexus_user: ${{secrets.MGNL_NEXUS_USER}} + mgnl_nexus_pass: ${{secrets.MGNL_NEXUS_PASS}} # Run maven verify - name: Maven verify run: mvn verify --batch-mode