🐛 [Fix] Apply Http status of ErrorReasonDTO in ServerApplicationExce… #21
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 to Central | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Java | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| server-id: central | |
| server-username: ${{ secrets.OSSRH_USERNAME }} | |
| server-password: ${{ secrets.OSSRH_PASSWORD }} | |
| settings-path: ${{ github.workspace }} | |
| - name: Install GPG | |
| run: sudo apt-get update && sudo apt-get install -y gnupg2 | |
| - name: Import GPG key | |
| env: | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| run: | | |
| mkdir -p ~/.gnupg | |
| chmod 700 ~/.gnupg | |
| echo "$GPG_PRIVATE_KEY" | gpg --batch --import > /dev/null 2>&1 | |
| echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf | |
| gpgconf --kill gpg-agent | |
| echo RELOADAGENT | gpg-connect-agent | |
| - name: Write Maven settings.xml | |
| run: echo "${{ secrets.MAVEN_SETTINGS_XML }}" > ${{ github.workspace }}/settings.xml | |
| - name: Deploy to Maven Central | |
| env: | |
| GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| run: | | |
| export GPG_TTY=$(tty) | |
| mvn clean deploy -s ${{ github.workspace }}/settings.xml -P central --batch-mode -Dgpg.keyname=$GPG_KEYNAME -Dgpg.passphrase=$GPG_PASSPHRASE -Dgpg.pinentry-mode=loopback |