Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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