mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
34 lines
827 B
YAML
34 lines
827 B
YAML
name: Build spine-libgdx
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'spine-libgdx/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
server-id: sonatype-nexus-snapshots
|
|
server-username: MAVEN_USERNAME
|
|
server-password: MAVEN_PASSWORD
|
|
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v2
|
|
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 }}
|