This repository was archived by the owner on Mar 24, 2026. It is now read-only.
build(maven): bump pom.xml to 4.0-SNAPSHOT (#2286) #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Maven Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| maven-deploy: | |
| runs-on: ubuntu-latest | |
| # Do not disturb forks | |
| if: github.repository == 'xspec/xspec' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: gpg --version | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.9 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| server-id: xspec-io.ossrh | |
| server-username: NEXUS_USERNAME | |
| server-password: NEXUS_PASSWORD | |
| - name: Check Maven and Java versions | |
| run: mvn -v | |
| - run: mvn -e clean deploy --batch-mode --activate-profiles release -Dgpg.signer=bc | |
| env: | |
| NEXUS_USERNAME: ${{ secrets.maven_username }} | |
| NEXUS_PASSWORD: ${{ secrets.maven_password }} | |
| MAVEN_GPG_KEY: ${{ secrets.gpg_private_key }} | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }} |