File tree Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Expand file tree Collapse file tree 1 file changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -3,33 +3,30 @@ name: Android CI
33on :
44 push :
55 branches : [ main ]
6- pull_request :
7- branches : [ main ]
86
97jobs :
108
119 test :
1210 name : Run Unit Tests
1311 runs-on : ubuntu-latest
1412 steps :
15- - uses : actions/checkout@v1
16- - name : set up JDK 1.8
17- uses : actions/setup-java@v1
13+ - uses : actions/checkout@v2
14+ - name : set up JDK 11
15+ uses : actions/setup-java@v2
1816 with :
19- java-version : 1.8
17+ java-version : ' 11 '
2018 - name : Unit tests
2119 run : bash ./gradlew test --stacktrace
2220 build :
2321
2422 runs-on : ubuntu-latest
2523
2624 steps :
27- - uses : actions/checkout@v1
28- - name : set up JDK 1.8
29- uses : actions/setup-java@v1
25+ - uses : actions/checkout@v2
26+ - name : set up JDK 11
27+ uses : actions/setup-java@v2
3028 with :
31- java-version : 1.8
32- cache : gradle
29+ java-version : ' 11'
3330
3431 - name : Grant execute permission for gradlew
3532 run : chmod +x gradlew
4441 uses : actions/upload-artifact@v1
4542 with :
4643 name : pluginbasicutils-release
47- path : pluginbasicutils/build/outputs/aar/pluginbasicutils-release.aar
44+ path : pluginbasicutils/build/outputs/aar/pluginbasicutils-release.aar
45+ - name : Set release name
46+ run : echo ::set-env name=RELEASE_NAME::$(echo ${GITHUB_REF:11})
47+ - name : Create Release
48+ id : create_release
49+ uses : actions/create-release@v1
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ with :
53+ tag_name : ${{ github.ref }}
54+ release_name : ${{ env.RELEASE_NAME }}
55+ body : |
56+ What is new :
57+ - First Release
58+ draft: false
59+ prerelease: false
You can’t perform that action at this time.
0 commit comments