File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish package to Github Packages
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ build :
9
+
10
+ runs-on : ubuntu-24.04
11
+ permissions :
12
+ contents : read
13
+ packages : write
14
+
15
+ steps :
16
+ - name : apt-update
17
+ run : sudo apt-get update
18
+
19
+ - name : install libnng
20
+ run : sudo apt install libnng-dev
21
+
22
+ - uses : actions/checkout@v4
23
+
24
+ - name : Set up JDK 11
25
+ uses : actions/setup-java@v4
26
+ with :
27
+ java-version : ' 11'
28
+ distribution : ' temurin'
29
+
30
+ - name : Setup Gradle
31
+ uses : gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
32
+
33
+ - name : Build with Gradle
34
+ run : ./gradlew build
35
+
36
+ - name : Publish to GitHub Packages
37
+ run : ./gradlew publish
38
+ env :
39
+ USERNAME : ${{ github.actor }}
40
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments