2022-02-21 07:36:01 +08:00

30 lines
869 B
YAML

name: Maven
on:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Build with Gradle
run: |
sed -i '/withSourcesJar()/d' library/build.gradle
./gradlew :lsplant:publishToMavenLocal
git reset --hard HEAD
./gradlew :lsplant:publish
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.maven_pgp_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.maven_pgp_signingPassword }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}