nhplus/.gitea/workflows/javadoc.yml
Dominik Säume 9de598ef67
All checks were successful
Javadoc Deploy / Javadoc (push) Successful in 29s
Quality Check / Linting Check (push) Successful in 32s
Quality Check / Javadoc Check (push) Successful in 37s
NOTICKET: Fix Javadoc Generation
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
2024-05-07 19:26:27 +02:00

27 lines
No EOL
780 B
YAML

name: "Javadoc Deploy"
on:
push:
branches:
- main
jobs:
javadoc:
name: "Javadoc"
runs-on: "ubuntu-latest"
container:
image: "git.euph.dev/actions/runner-java-21:latest"
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- name: "javadoc"
run: mvn package javadoc:javadoc -f pom.xml
- name: "Deploy Javadoc"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
echo "$SSH_PRIVATE_KEY" | ssh-add -
ssh -o StrictHostKeyChecking=no ${{ vars.SSH_HOST }} 'rm -rf ~/webroot/*'
scp -r ./javadoc_build/* ${{ vars.SSH_HOST }}:~/webroot/