Skip to content

Commit f76e055

Browse files
committed
feat: add GitHub Action to build and publish package to GitHub Packages
1 parent 5b02fe1 commit f76e055

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build & Publish to GitHub Packages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 24
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 24
24+
25+
- name: Publish
26+
run: ./gradlew publish
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)