Skip to content

Commit

Permalink
Allow publishing from archived releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Mar 28, 2024
1 parent c45b754 commit 36057a5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-hotfix.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 36057a5

Please sign in to comment.