@@ -12,53 +12,53 @@ jobs:
1212 version : ${{ steps.version.outputs.version }}
1313 tags : ${{ steps.tags.outputs.tags }}
1414 steps :
15- - uses : actions/checkout@v2
16- - name : get current version
17- run : |
18- echo ::set-output name=version::$(grep -Po '(?<=latest=).*' ./gradle.properties)
19- id : version
20- - name : get old version-tags
21- run : |
22- echo ::set-output name=tags::$(curl -s https://api.github.com/repos/yanndroid/samsungoneui /tags | grep -Po '(?<="name": ").*(?=")')
23- id : tags
15+ - uses : actions/checkout@v2
16+ - name : get current version
17+ run : |
18+ echo ::set-output name=version::$(grep -Po '(?<=latest=).*' ./gradle.properties)
19+ id : version
20+ - name : get old version-tags
21+ run : |
22+ echo ::set-output name=tags::$(curl -s https://api.github.com/repos/yanndroid/oneui-design-library /tags | grep -Po '(?<="name": ").*(?=")')
23+ id : tags
2424
2525 publish :
2626 runs-on : ubuntu-latest
2727 needs : versions
2828 if : ${{ !contains(needs.versions.outputs.tags, needs.versions.outputs.version) }}
2929 steps :
30- - uses : actions/checkout@v2
31- - uses : actions/cache@v2
32- with :
33- path : |
34- ~/.gradle/caches
35- ~/.gradle/wrapper
36- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
37- restore-keys : |
38- ${{ runner.os }}-gradle-
39- - uses : actions/setup-java@v2
40- with :
41- distribution : ' zulu'
42- java-version : ' 8'
43- - name : grant execute permission for gradlew
44- run : chmod +x gradlew
45- - name : build
46- run : ./gradlew -p ./yanndroid/samsung clean build
47- - name : publish to github-package-registry
48- run : ./gradlew -p ./yanndroid/samsung publish
49- env :
50- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ - uses : actions/checkout@v2
31+ - uses : actions/cache@v2
32+ with :
33+ path : |
34+ ~/.gradle/caches
35+ ~/.gradle/wrapper
36+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
37+ restore-keys : |
38+ ${{ runner.os }}-gradle-
39+ - uses : actions/setup-java@v2
40+ with :
41+ distribution : ' zulu'
42+ java-version : ' 8'
43+ - name : grant execute permission for gradlew
44+ run : chmod +x gradlew
45+ - name : build
46+ run : ./gradlew -p ./yanndroid/oneui clean build
47+ - name : publish to github-package-registry
48+ run : ./gradlew -p ./yanndroid/oneui publish
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5151
5252 release :
5353 runs-on : ubuntu-latest
5454 needs : versions
5555 if : ${{ !contains(needs.versions.outputs.tags, needs.versions.outputs.version) }}
5656 steps :
57- - uses : actions/checkout@v2
58- - name : create release
59- uses : actions/create-release@v1
60- with :
61- release_name : ${{ needs.versions.outputs.version }}
62- tag_name : ${{ needs.versions.outputs.version }}
63- env :
64- GITHUB_TOKEN : ${{ github.token }}
57+ - uses : actions/checkout@v2
58+ - name : create release
59+ uses : actions/create-release@v1
60+ with :
61+ release_name : ${{ needs.versions.outputs.version }}
62+ tag_name : ${{ needs.versions.outputs.version }}
63+ env :
64+ GITHUB_TOKEN : ${{ github.token }}
0 commit comments