From d40f60e724a418663c689c4f3feb831c9c698682 Mon Sep 17 00:00:00 2001 From: Romuald Rousseau Date: Tue, 27 Aug 2024 11:54:31 +0800 Subject: [PATCH] fix: Fix prod workflow --- .github/workflows/maven-build.yml | 2 +- .github/workflows/maven-deploy-doc.yml | 2 +- .github/workflows/maven-deploy-prod.yml | 2 +- .github/workflows/maven-deploy-snapshot.yml | 2 +- .github/workflows/maven-test.yml | 2 +- .github/workflows/shuju-monorepo-release.yml | 1 - 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5f1bfab..49986c2 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -28,7 +28,7 @@ jobs: run: mvn -U -B clean initialize --projects :${{ inputs.service }} --also-make - name: Build project - run: mvn -B package -DskipTests --projects :${{ inputs.service }} --also-make + run: mvn -U -B package -DskipTests --projects :${{ inputs.service }} --also-make - name: Archive build artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/maven-deploy-doc.yml b/.github/workflows/maven-deploy-doc.yml index dd3fe10..7e57bf0 100644 --- a/.github/workflows/maven-deploy-doc.yml +++ b/.github/workflows/maven-deploy-doc.yml @@ -36,7 +36,7 @@ jobs: run: mvn -U -B clean initialize - name: Deploy project - run: mvn -B install + run: mvn -U -B -DskipTests install - name: Build documentation run: mvn -B -P documentation site site:stage diff --git a/.github/workflows/maven-deploy-prod.yml b/.github/workflows/maven-deploy-prod.yml index a0a8a52..64c316a 100644 --- a/.github/workflows/maven-deploy-prod.yml +++ b/.github/workflows/maven-deploy-prod.yml @@ -51,7 +51,7 @@ jobs: - name: Deploy project run: | export GPG_TTY=$(tty) - mvn -B deploy -P release -s .mvn/settings.xml + mvn -U -B deploy -P release -s .mvn/settings.xml env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} diff --git a/.github/workflows/maven-deploy-snapshot.yml b/.github/workflows/maven-deploy-snapshot.yml index 84b7328..5af7de6 100644 --- a/.github/workflows/maven-deploy-snapshot.yml +++ b/.github/workflows/maven-deploy-snapshot.yml @@ -29,7 +29,7 @@ jobs: run: mvn -U -B clean initialize - name: Deploy project snapshot - run: mvn -B deploy -P snapshot -s .mvn/settings.xml + run: mvn -U -B deploy -P snapshot -s .mvn/settings.xml env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index 3b2ecc1..c214794 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -28,4 +28,4 @@ jobs: run: mvn -U -B clean initialize --projects :${{ inputs.service }} --also-make - name: Test project - run: mvn -B test --projects :${{ inputs.service }} --also-make + run: mvn -U -B test --projects :${{ inputs.service }} --also-make diff --git a/.github/workflows/shuju-monorepo-release.yml b/.github/workflows/shuju-monorepo-release.yml index bf9cad2..b28de3c 100644 --- a/.github/workflows/shuju-monorepo-release.yml +++ b/.github/workflows/shuju-monorepo-release.yml @@ -21,7 +21,6 @@ jobs: secrets: inherit deploy-doc: - needs: [deploy-prod] uses: ./.github/workflows/maven-deploy-doc.yml with: version: ${{ github.event.release.tag_name }}