diff --git a/.github/workflows/hangar-publish.yml b/.github/workflows/hangar-publish.yml new file mode 100644 index 0000000..0bbd0ea --- /dev/null +++ b/.github/workflows/hangar-publish.yml @@ -0,0 +1,24 @@ +name: Hangar Publish + +on: + release: + types: + - prereleased + - released + +jobs: + build: + env: + HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + - name: Publish with Gradle to Hangar + uses: gradle/actions/setup-gradle@v3 + with: + arguments: publishAllPublicationsToHangar \ No newline at end of file