Update publish.yml #383
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -2,9 +2,7 @@ name: Gradle build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ dev, master ]
|
||||||
- dev
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -26,7 +24,9 @@ jobs:
|
|||||||
- name: Cache gradle
|
- name: Cache gradle
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -42,11 +42,13 @@ jobs:
|
|||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: >
|
run: >
|
||||||
./gradlew release --no-daemon -Ppublishing.enabled=true
|
./gradlew release --no-daemon -Ppublishing.enabled=true
|
||||||
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
||||||
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
||||||
|
-Ppublishing.sonatype=false
|
||||||
- name: Publish Mac Artifacts
|
- name: Publish Mac Artifacts
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
run: >
|
run: >
|
||||||
./gradlew release --no-daemon -Ppublishing.enabled=true -Ppublishing.platform=macosX64
|
./gradlew release --no-daemon -Ppublishing.enabled=true -Ppublishing.platform=macosX64
|
||||||
-Ppublishing.space.user=${{ secrets.PUBLISHING_SPACE_USER }}
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
||||||
-Ppublishing.space.token=${{ secrets.PUBLISHING_SPACE_TOKEN }}
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|
||||||
|
-Ppublishing.sonatype=false
|
||||||
|
Loading…
Reference in New Issue
Block a user