Add central close and release workflows

This commit is contained in:
Janne Valkealahti
2021-03-19 15:14:31 +00:00
parent c197ffe592
commit c9fe9a6f57
2 changed files with 46 additions and 0 deletions

View File

@@ -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

View File

@@ -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