Skip to content

Commit

Permalink
🏗️ 调整 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Jul 17, 2024
1 parent f15f125 commit 0a475a7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Snapshot
name: Publish Snapshot 2.7.x

on:
push:
Expand All @@ -9,28 +9,30 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
- 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@v2
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: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Gradle 8.8
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.8
- name: Build with Gradle
run: ./gradlew publishSnapshot
run: gradle publishSnapshot --no-parallel
env:
NEXUS_OSS_USER_NAME: ${{ secrets.OSS_NAME }}
NEXUS_OSS_PASS_WORD: ${{ secrets.OSS_PWD }}
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
Expand Down

0 comments on commit 0a475a7

Please sign in to comment.