[0.4.0] - 2024-04-14 #4
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
# CI deploy maven package | |
# | |
# version 1.0.0 | |
name: CI deploy maven package | |
on: | |
push: | |
branches: | |
- branch-deploy | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up JDK 17 | |
uses: actions/setup-java@main | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
cache: maven | |
server-id: central | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Import gpg | |
run: echo -e "${{ secrets.PASSPHRASE }}" | echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --allow-secret-key-import --import | |
- name: Build package | |
run: mvn clean install -P test,full | |
- name: Publish package | |
run: mvn --batch-mode deploy -P doRelease | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }} |