Update publish.yml

This commit is contained in:
Iaroslav Postovalov 2021-07-21 00:00:35 +07:00 committed by Iaroslav Postovalov
parent ca645aec17
commit bc28412950
2 changed files with 10 additions and 8 deletions

View File

@ -2,9 +2,7 @@ name: Gradle build
on:
push:
branches:
- dev
- master
branches: [ dev, master ]
pull_request:
jobs:
@ -26,7 +24,9 @@ jobs:
- name: Cache gradle
uses: actions/cache@v2
with:
path: ~/.gradle/caches
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-

View File

@ -42,11 +42,13 @@ jobs:
if: matrix.os == 'windows-latest'
run: >
./gradlew release --no-daemon -Ppublishing.enabled=true
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
-Ppublishing.sonatype=false
- name: Publish Mac Artifacts
if: matrix.os == 'macOS-latest'
run: >
./gradlew release --no-daemon -Ppublishing.enabled=true -Ppublishing.platform=macosX64
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
-Ppublishing.sonatype=false