Skip to content

✨ 简化,删除部分模块 #745

✨ 简化,删除部分模块

✨ 简化,删除部分模块 #745

name: Publish Snapshot
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Gradle 8.8
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.8
- name: Build with Gradle
run: gradle publishSnapshot --no-parallel
env:
NEXUS_OSS_USER_NAME: ${{ secrets.OSSRH_USERNAME }}
NEXUS_OSS_PASS_WORD: ${{ secrets.OSSRH_TOKEN }}
- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties