Skip to content

Commit 9557aeb

Browse files
committed
Add GitHub Actions workflow for publishing packages
1 parent ca9e529 commit 9557aeb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Packages
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
19+
- name: Setup Gradle
20+
uses: gradle/actions/setup-gradle@v4
21+
22+
- name: Build with Gradle Wrapper
23+
run: ./gradlew build
24+
25+
- name: Publish to GitHub Packages
26+
run: ./gradlew publish
27+
env:
28+
USERNAME: ${{ github.actor }}
29+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
BUILD_VERSION: ${{ github.ref_name }}

0 commit comments

Comments
 (0)