Deploy Boomerang #7
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: Deploy Sparse SPDS | |
| on: [workflow_dispatch] | |
| jobs: | |
| deployment: | |
| runs-on: ubuntu-latest | |
| environment: Deploy | |
| name: Sparse SPDS deployment | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| # Sets up Java version | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'adopt' | |
| java-package: 'jdk' | |
| java-version: '11' | |
| server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin | |
| server-username: OSSRH_USERNAME # Env var that holds your OSSRH user name | |
| server-password: OSSRH_PASSWORD # Env var that holds your OSSRH user pw | |
| gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret | |
| gpg-passphrase: SIGN_KEY_PASS # Env var that holds the key's passphrase | |
| - name: Deploy SPDS | |
| run: mvn -B -U clean deploy -Pdeployment -DskipTests | |
| env: | |
| SIGN_KEY_PASS: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }} | |
| OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }} | |
| OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }} | |
| synchronize: | |
| runs-on: ubuntu-latest | |
| needs: deployment | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Synchronize master and develop | |
| run: | | |
| gh pr create -B develop -H master -t "Synchronize version in master and develop" -b "Update the version in `develop` from `master`" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |