From 36057a5d3814265e1343e985ee363b12366fe26c Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Thu, 28 Mar 2024 09:56:42 +0000 Subject: [PATCH] Allow publishing from archived releases --- .github/workflows/publish-hotfix.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish-hotfix.yml diff --git a/.github/workflows/publish-hotfix.yml b/.github/workflows/publish-hotfix.yml new file mode 100644 index 000000000..562e059d9 --- /dev/null +++ b/.github/workflows/publish-hotfix.yml @@ -0,0 +1,33 @@ +name: Publish hotfix artifacts in Space + +on: + workflow_dispatch: + inputs: + tag-name: + description: 'Hotfix tag to publish' + required: true + +jobs: + publish-current: + name: Publish hotfix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.tag-name }} + + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + cache: gradle + + - name: Setup Gradle + run: chmod +x gradlew + + - name: Run Gradle + run: ./gradlew publishMainPublicationToSpaceRepository + env: + MAVEN_SPACE_USERNAME: ${{secrets.MAVEN_SPACE_USERNAME}} + MAVEN_SPACE_PASSWORD: ${{secrets.MAVEN_SPACE_PASSWORD}}