File tree Expand file tree Collapse file tree 2 files changed +42
-22
lines changed Expand file tree Collapse file tree 2 files changed +42
-22
lines changed Original file line number Diff line number Diff line change 1+ name : Build 
2+ 
3+ on : [push, pull_request] 
4+ 
5+ jobs :
6+   build :
7+     runs-on : ubuntu-latest 
8+     steps :
9+       - name : Checkout code 
10+         uses : actions/checkout@v3 
11+ 
12+       - name : Setup JDK 
13+         uses : actions/setup-java@v3 
14+         with :
15+           distribution : temurin 
16+           java-version : 17 
17+ 
18+       - name : Setup Gradle 
19+         uses : gradle/gradle-build-action@v2 
20+ 
21+       - name : Build with Gradle 
22+         run : ./gradlew build 
23+ 
24+       - name : Build Shadow JAR 
25+         run : ./gradlew shadowJar 
26+ 
27+       - name : Rename assets to Notify-nightly 
28+         if : github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main' 
29+         shell : pwsh 
30+         run : | 
31+           Get-ChildItem -Recurse -Filter "Notify*" -Include "*-all.jar" | ForEach-Object { 
32+             Rename-Item $_.FullName -NewName "Notify-nightly$($_.Extension)" 
33+           } 
34+ 
35+        - name : Release nightly JAR 
36+         if : github.repository == 'russellbanks/Notify' && github.ref == 'refs/heads/main' 
37+         uses : softprops/action-gh-release@v1 
38+         with :
39+           name : Nightly release 
40+           tag_name : nightly 
41+           prerelease : true 
42+           files : build/libs/Notify-nightly.jar 
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments