File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1616jobs :
1717 build :
1818
19- runs-on : windows -latest
19+ runs-on : ubuntu -latest
2020
2121 steps :
2222 - uses : actions/checkout@v2
@@ -25,11 +25,34 @@ jobs:
2525 with :
2626 java-version : ' 11'
2727 distribution : ' temurin'
28+ - name : Setup Gradle
29+ uses : gradle/gradle-build-action@v2
30+
2831 - name : Build
2932 run : |
30- ./gradlew.bat shadowJar
33+ ./gradlew shadowJar
3134 - name : Upload
3235 uses : actions/upload-artifact@v2
3336 with :
3437 name : EmmyLuaLs
3538 path : ${{ github.workspace }}/EmmyLua-LS/build
39+ release :
40+ name : Upload Release
41+ needs : [build]
42+ runs-on : [ubuntu-latest]
43+ steps :
44+ - name : Download
45+ uses : actions/download-artifact@v2
46+ - name : Display structure of downloaded files
47+ run : ls -R
48+ - name : Release
49+ uses : softprops/action-gh-release@v1
50+ if : startsWith(github.ref, 'refs/tags/')
51+ with :
52+ name : CodeFormat
53+ draft : false
54+ generate_release_notes : true
55+ files : |
56+ EmmyLuaLs/EmmyLua-LS-all.jar
57+ token : ${{ secrets.RELEASE }}
58+
You can’t perform that action at this time.
0 commit comments