Skip to content

Commit

Permalink
Remove nexus plugin steps (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardozanini authored Feb 13, 2025
1 parent 6a0c3b3 commit 1790b38
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: sdk-java Release

on:
workflow_dispatch:
pull_request:
types: [closed]
paths:
Expand All @@ -11,7 +10,7 @@ jobs:
release:
runs-on: ubuntu-latest
name: release
if: ${{ github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
if: ${{ github.event.pull_request.merged == true }}

steps:
- uses: radcortez/project-metadata-action@main
Expand Down Expand Up @@ -57,25 +56,5 @@ jobs:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

- name: Create Staging Repository
run: mvn nexus-staging:deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

- name: Check Staging Repository
run: mvn nexus-staging:rc-list
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

- name: Close & Release Staging Repository
run: |
mvn nexus-staging:rc-close
mvn nexus-staging:rc-release
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

- name: Push tags
run: git push && git push --tags

0 comments on commit 1790b38

Please sign in to comment.