From e4dc324cba3d01cb60003695a5d26a4a09c30450 Mon Sep 17 00:00:00 2001 From: Moncef AOUDIA Date: Fri, 13 Sep 2024 20:07:58 +0200 Subject: [PATCH] ci: :green_heart: upgrade Github Action Signed-off-by: Moncef AOUDIA --- .github/workflows/build.yml | 6 +++--- .github/workflows/release.yml | 8 +++----- .github/workflows/trigger.yml | 14 +++++++------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index edab677..4b9a0f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,16 +16,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 - name: Cache Maven - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 143236b..985487f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,18 +12,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache Maven - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Set up Java for publishing to Maven Central - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 @@ -33,7 +32,6 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Publish to Maven Central env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/.github/workflows/trigger.yml b/.github/workflows/trigger.yml index 917f1d4..e806bf9 100644 --- a/.github/workflows/trigger.yml +++ b/.github/workflows/trigger.yml @@ -18,16 +18,16 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 - name: Cache Maven - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -43,19 +43,19 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # required for triggering release workflow on tagging token: ${{ secrets.GIT_ACCESS_TOKEN }} - name: Setup Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'adopt' java-version: 8 - name: Cache Maven - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -74,4 +74,4 @@ jobs: git commit -a -m "build: releasing version $VERSION" git tag v$VERSION git push origin $BRANCH - git push origin v$VERSION + git push origin v$VERSION \ No newline at end of file