Skip to content

feat: digest接口只返回CONAN_MANIFEST#2770 #78

feat: digest接口只返回CONAN_MANIFEST#2770

feat: digest接口只返回CONAN_MANIFEST#2770 #78

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: deploy CI jar to OSS
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle
- name: Gradle Build
working-directory: src/backend
env:
MAVEN_REPO_DEPLOY_URL: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
run: |
echo "GITHUB_REF=${GITHUB_REF}"
repo_version=${GITHUB_REF##*/v}
echo "repo_version=${repo_version}"
./gradlew publishAllPublicationsToAllJarRepository -Drepo_version=${repo_version} \
-PallJarRepo=${MAVEN_REPO_DEPLOY_URL} \
-PallJarUsername=${SONATYPE_USERNAME} \
-PallJarPassword=${SONATYPE_PASSWORD}