2121
2222 steps :
2323 - uses : actions/checkout@v2
24- - name : Set up JDK
24+ - name : Set up JDK 11
2525 uses : actions/setup-java@v1
2626 with :
2727 java-version : 11
3333 ~/.konan
3434 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} # hash based on *.gradle.kts and *.gradle.properties
3535 restore-keys : ${{ runner.os }}-gradle
36- - uses : eskatos/gradle-command-action@v1
36+ - name : Build and run tests
37+ uses : eskatos/gradle-command-action@v1
3738 with :
3839 arguments : build -PmacTargetsCompilation=${{ matrix.macTargetsCompilation }} --scan --no-daemon
3940
4748
4849 steps :
4950 - uses : actions/checkout@v2
50- - name : Set up JDK
51+ - name : Set up JDK 11
5152 uses : actions/setup-java@v1
5253 with :
5354 java-version : 11
@@ -59,11 +60,10 @@ jobs:
5960 ~/.konan
6061 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} # hash based on *.gradle.kts and *.gradle.properties
6162 restore-keys : ${{ runner.os }}-gradle
62- - if : ${{ matrix.os == 'windows-latest' }}
63- run : echo ("::set-env name=TAG_NAME::" + $env:GITHUB_REF.replace('refs/tags/', ''))
64- - if : ${{ matrix.os != 'windows-latest' }}
65- run : echo "##[set-env name=TAG_NAME;]$(echo ${GITHUB_REF#refs/tags/})"
66- - name : Publish Packages to Bintray
63+ - name : Set TAG_NAME for publication
64+ run : echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
65+ shell : bash
66+ - name : Publish Packages to Bintray + JCenter (version ${{ env.TAG_NAME }})
6767 uses : eskatos/gradle-command-action@v1
6868 with :
6969 arguments : bintrayUpload -PbintrayUser=${{ secrets.bintrayUser }} -PbintrayKey=${{ secrets.bintrayKey }} -PsonatypeUsername=${{ secrets.sonatypeUsername }} -PsonatypePassword=${{ secrets.sonatypePassword }} -Pversion=${{ env.TAG_NAME }} -PbuildNumber=${{ github.run_number }} --stacktrace --no-daemon
7878
7979 steps :
8080 - uses : actions/checkout@v2
81- - name : Set up JDK
81+ - name : Set up JDK 11
8282 uses : actions/setup-java@v1
8383 with :
8484 java-version : 11
@@ -90,11 +90,10 @@ jobs:
9090 ~/.konan
9191 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.*') }} # hash based on *.gradle.kts and *.gradle.properties
9292 restore-keys : ${{ runner.os }}-gradle
93- - if : ${{ matrix.os == 'windows-latest' }}
94- run : echo ("::set-env name=TAG_NAME::" + $env:GITHUB_REF.replace('refs/tags/', ''))
95- - if : ${{ matrix.os != 'windows-latest' }}
96- run : echo "##[set-env name=TAG_NAME;]$(echo ${GITHUB_REF#refs/tags/})"
97- - name : Publish Packages to Bintray
93+ - name : Set TAG_NAME for publication
94+ run : echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
95+ shell : bash
96+ - name : Check that packages are published to JCenter (version ${{ env.TAG_NAME }})
9897 uses : eskatos/gradle-command-action@v1
9998 with :
10099 arguments : publish-check:build -PpublishCheckVersion=${{ env.TAG_NAME }} --info --no-daemon
0 commit comments