We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c90439a commit 1d84cabCopy full SHA for 1d84cab
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+name: Package
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - /*
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ packages: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Set up JDK 22
17
+ uses: actions/setup-java@v40
18
+ with:
19
+ java-version: '22'
20
+ distribution: 'adopt'
21
22
+ - name: Setup Gradle
23
+ uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
24
25
+ # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
26
+ # the publishing section of your build.gradle
27
+ - name: Publish to GitHub Packages
28
+ run: ./gradlew publish
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments