From c9fe9a6f57fe75be84ea33651898b98cf93d0f9a Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Fri, 19 Mar 2021 15:14:31 +0000 Subject: [PATCH] Add central close and release workflows --- .github/workflows/central-sync-close.yml | 23 ++++++++++++++++++++++ .github/workflows/central-sync-release.yml | 23 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/central-sync-close.yml create mode 100644 .github/workflows/central-sync-release.yml diff --git a/.github/workflows/central-sync-close.yml b/.github/workflows/central-sync-close.yml new file mode 100644 index 00000000..6ef93fa8 --- /dev/null +++ b/.github/workflows/central-sync-close.yml @@ -0,0 +1,23 @@ +name: Central Sync Close + +on: + workflow_dispatch: + inputs: + stagedRepositoryId: + description: "Staged repository id" + required: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + + # Request close promotion repo + - uses: jvalkeal/nexus-sync@main + with: + url: ${{ secrets.OSSRH_URL }} + username: ${{ secrets.OSSRH_USERNAME }} + password: ${{ secrets.OSSRH_PASSWORD }} + staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} + staging-repo-id: ${{ github.event.inputs.stagedRepositoryId }} + close: true diff --git a/.github/workflows/central-sync-release.yml b/.github/workflows/central-sync-release.yml new file mode 100644 index 00000000..59adac0c --- /dev/null +++ b/.github/workflows/central-sync-release.yml @@ -0,0 +1,23 @@ +name: Central Sync Release + +on: + workflow_dispatch: + inputs: + stagedRepositoryId: + description: "Staged repository id" + required: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + + # Request release promotion repo + - uses: jvalkeal/nexus-sync@main + with: + url: ${{ secrets.OSSRH_URL }} + username: ${{ secrets.OSSRH_USERNAME }} + password: ${{ secrets.OSSRH_PASSWORD }} + staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }} + staging-repo-id: ${{ github.event.inputs.stagedRepositoryId }} + release: true