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
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
- pull_request :
7
- branches : [ main ]
8
6
9
7
jobs :
10
8
11
9
test :
12
10
name : Run Unit Tests
13
11
runs-on : ubuntu-latest
14
12
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
18
16
with :
19
- java-version : 1.8
17
+ java-version : ' 11 '
20
18
- name : Unit tests
21
19
run : bash ./gradlew test --stacktrace
22
20
build :
23
21
24
22
runs-on : ubuntu-latest
25
23
26
24
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
30
28
with :
31
- java-version : 1.8
32
- cache : gradle
29
+ java-version : ' 11'
33
30
34
31
- name : Grant execute permission for gradlew
35
32
run : chmod +x gradlew
44
41
uses : actions/upload-artifact@v1
45
42
with :
46
43
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