If applied, this commit will add gateway real ip #18
This file contains 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: Publish to Maven Repository | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Build settings.xml file | |
uses: whelk-io/maven-settings-xml-action@v20 | |
with: | |
servers: > | |
[ | |
{ | |
"id": "ossrh", | |
"username": "${{secrets.MVN_USERNAME}}", | |
"password": "${{secrets.MVN_PASSWORD}}" | |
} | |
] | |
- name: Deploy to Maven Repository | |
env: | |
GPG_KEYNAME: ${{ secrets.GPG_PRIV_KEY }} | |
run: mvn clean deploy --no-transfer-progress |