[libgdx] Switch to Gradle 8.4, publish to Maven Central via Maven. #358
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build spine-libgdx | |
on: | |
push: | |
paths: | |
- 'spine-libgdx/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: "8" | |
server-id: sonatype-nexus-snapshots | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build spine-libgdx | |
working-directory: spine-libgdx/spine-libgdx | |
run: mvn clean deploy | |
env: | |
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} | |
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} |