Update actions

This commit is contained in:
Jason Penilla 2022-11-22 19:06:16 -07:00
parent 08a5f4a9c9
commit ccd22ea127
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8
3 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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