Skip to content

Commit

Permalink
Merge pull request #4 from RomualdRousseau/bug-fix/fix-worflows
Browse files Browse the repository at this point in the history
fix: Fix workflows to initialize first
  • Loading branch information
RomualdRousseau authored Aug 26, 2024
2 parents 0a5f7b9 + eb086dc commit 7746ba8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mvn initialize --projects :${{ inputs.service }} --file pom.xml --also-make --batch-mode

- name: Build project
run: mvn -U -B package -Dmaven.test.skip=true --projects :${{ inputs.service }} --file pom.xml --also-make --batch-mode
run: mvn -U -B package -DskipTests --projects :${{ inputs.service }} --file pom.xml --also-make --batch-mode

- name: Archive build artifact
uses: actions/upload-artifact@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/maven-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Installing local dependencies
run: mvn initialize --projects :${{ inputs.service }} --file pom.xml --also-make --batch-mode

- name: Set version
run: |
mvn versions:set -DnewVersion=${{ inputs.version }} --file pom.xml --also-make --batch-mode
Expand All @@ -46,7 +49,7 @@ jobs:
- name: Deploy project
run: |
export GPG_TTY=$(tty)
mvn -U -B clean deploy -Dmaven.test.skip=true -P release --file pom.xml -s .mvn/settings.xml --also-make --batch-mode
mvn -U -B clean deploy -P release --file pom.xml -s .mvn/settings.xml --also-make --batch-mode
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/maven-deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Installing local dependencies
run: mvn initialize --projects :${{ inputs.service }} --file pom.xml --also-make --batch-mode

- name: Deploy project snapshot
run: mvn -U -B clean deploy -Dmaven.test.skip=true -P snapshot --file pom.xml -s .mvn/settings.xml --also-make --batch-mode
run: mvn -U -B clean deploy -P snapshot --file pom.xml -s .mvn/settings.xml --also-make --batch-mode
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit 7746ba8

Please sign in to comment.