diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index e840ab4546..25aa05453a 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -15,29 +15,22 @@ jobs: name: Deploy Snapshot runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up publishing to maven central uses: actions/setup-java@v4 with: java-version: '8' distribution: 'temurin' + cache: 'maven' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: | - ~/.m2/repository - /var/cache/apt - key: lettuce-${{hashFiles('**/pom.xml')}} - name: mvn offline run: | mvn -q dependency:go-offline - name: deploy run: | - mvn --no-transfer-progress \ - -DskipTests deploy + mvn --no-transfer-progress deploy env: MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}} MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/version-and-release.yaml b/.github/workflows/version-and-release.yaml index 54ca8816ad..7f0fa2cd74 100644 --- a/.github/workflows/version-and-release.yaml +++ b/.github/workflows/version-and-release.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: get version from tag id: get_version @@ -23,6 +23,7 @@ jobs: with: java-version: '8' distribution: 'temurin' + cache: 'maven' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD @@ -40,7 +41,7 @@ jobs: mvn --no-transfer-progress \ --batch-mode \ -Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \ - -DskipTests deploy -P release + deploy -P release env: MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}} MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}} \ No newline at end of file