Update actions
This commit is contained in:
parent
08a5f4a9c9
commit
ccd22ea127
3 changed files with 11 additions and 6 deletions
3
.github/workflows/deploy-snapshot.yml
vendored
3
.github/workflows/deploy-snapshot.yml
vendored
|
@ -19,7 +19,8 @@ jobs:
|
|||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Get project version
|
||||
id: get_version
|
||||
shell: bash
|
||||
|
|
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
@ -13,8 +13,10 @@ jobs:
|
|||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- run: ./gradlew -Dorg.gradle.parallel=true publish --no-daemon --stacktrace
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Deploy release
|
||||
run: ./gradlew -Dorg.gradle.parallel=true publish --no-daemon --stacktrace
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_paperUsername: ${{ secrets.DEPLOY_USER }}
|
||||
ORG_GRADLE_PROJECT_paperPassword: ${{ secrets.DEPLOY_PASS }}
|
||||
|
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: Test
|
||||
on:
|
||||
push:
|
||||
tags-ignore: [ "**" ]
|
||||
branches: [ "**" ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
@ -16,5 +16,7 @@ jobs:
|
|||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- run: ./gradlew -Dorg.gradle.parallel=true build --no-daemon --stacktrace
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Execute Gradle build
|
||||
run: ./gradlew build --no-daemon --stacktrace
|
||||
|
|
Loading…
Reference in a new issue