Skip to content

Commit a7de4fb

Browse files
committed
测试
1 parent 55f041d commit a7de4fb

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
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+

0 commit comments

Comments
 (0)