mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
36 lines
885 B
YAML
36 lines
885 B
YAML
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 }}
|