Skip to content

Commit

Permalink
test: build as jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Aug 2, 2024
1 parent 0f147e5 commit 2b68cd7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
deploy-maven-central:
needs: produce-packages
runs-on: ubuntu-latest
if: ${{ endsWith(needs.produce-packages.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }}
# if: ${{ endsWith(needs.produce-packages.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }}
permissions:
contents: read
packages: write
Expand All @@ -113,10 +113,8 @@ jobs:
/home/runner/.m2
/home/runner/work
key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }}
- name: Print settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Publish to Maven Central
run: mvn --batch-mode -DskipTests=true package -P gpg-sign -P nexus-staging
run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P nexus-staging

# deploy to GitHub Packages
deploy-github-packages:
Expand Down Expand Up @@ -145,7 +143,5 @@ jobs:
/home/runner/.m2
/home/runner/work
key: ${{ runner.os }}-mvn-${{ hashFiles('**/pom.xml') }}
- name: Print settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Publish to GitHub Packages
run: mvn --batch-mode -DskipTests=true package -P gpg-sign -P deploy-github-packages
run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package -P gpg-sign -P deploy-github-packages

0 comments on commit 2b68cd7

Please sign in to comment.