Skip to content

Release and Deploy

Release and Deploy #25

Workflow file for this run

name: Release and Deploy
on:
workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Release
run: |
git config user.email "[email protected]"
git config --global user.name "Pavel Zorin"
./mvnw --batch-mode -DskipTests -X release:clean release:prepare release:perform
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USERNAME: ${{ secrets.GITHUB_ACTOR }}
MAVEN_TOKEN: ${{ secrets.GITHUB_TOKEN }}