-
Notifications
You must be signed in to change notification settings - Fork 365
39 lines (38 loc) · 1.13 KB
/
publish-snapshot-2.7.x.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish Snapshot 2.7.x
on:
push:
branches: [ 2.7.x ]
pull_request:
branches: [ 2.7.x ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
- 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@v4
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