mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Update GitHub Action to use Gradle
This commit is contained in:
parent
26d10b80d4
commit
43c2df9cce
22
.github/workflows/spine-libgdx.yml
vendored
22
.github/workflows/spine-libgdx.yml
vendored
@ -12,24 +12,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: "8"
|
java-version: "8"
|
||||||
server-id: sonatype-nexus-snapshots
|
|
||||||
server-username: MAVEN_USERNAME
|
|
||||||
server-password: MAVEN_PASSWORD
|
|
||||||
|
|
||||||
- name: Cache Maven packages
|
- name: Cache Gradle packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.m2
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||||
restore-keys: ${{ runner.os }}-m2
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
- name: Build spine-libgdx
|
- name: Build spine-libgdx
|
||||||
working-directory: spine-libgdx/spine-libgdx
|
working-directory: spine-libgdx/spine-libgdx
|
||||||
run: mvn clean deploy
|
run: ./gradlew publishReleasePublicationToSonaType -PossrhUsername=${{ secrets.SONATYPE_USER }} -PossrhPassword=${{ secrets.SONATYPE_PASSWORD }}
|
||||||
env:
|
|
||||||
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }}
|
|
||||||
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user