Skip to content

Commit 2ce6f70

Browse files
author
david
committed
Add GitHub Actions workflow for Hangar publication
Introduce a new GitHub Actions workflow to automate the publishing process to Hangar upon release events. This workflow checks out the repo, sets up JDK 21, and runs Gradle to publish publications to Hangar.
1 parent fa2d4f1 commit 2ce6f70

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/hangar-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Hangar Publish
2+
3+
on:
4+
release:
5+
types:
6+
- prereleased
7+
- released
8+
9+
jobs:
10+
build:
11+
env:
12+
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
- name: Publish with Gradle to Hangar
22+
uses: gradle/actions/setup-gradle@v3
23+
with:
24+
arguments: publishAllPublicationsToHangar

0 commit comments

Comments
 (0)