nhplus/.gitea/workflows/quality.yml
Dominik Säume 1fbe7afeba
Some checks failed
Quality Check / Qualty Check (push) Failing after 40s
Quality Check / Qualty Check (pull_request) Failing after 39s
NOTICKET: Setup Javadoc
Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
2024-04-29 20:47:48 +02:00

38 lines
No EOL
1,015 B
YAML

name: "Quality Check"
on:
- push
- pull_request
jobs:
qs:
name: "Qualty Check"
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: "CHECK"
run: mvn checkstyle:check -e
- name: "javadoc"
run: |
mvn package
mvn javadoc:javadoc -f pom.xml
- name: "Setup SSH Keys"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
- name: "Setup SSH Keys and know_hosts"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- name: "Deploy Javadoc"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh ${{ vars.SSH_HOST }} 'rm -rf ~/webroot/*'
scp -r ./javadoc_build/* ${{ vars.SSH_HOST }}:~/webroot/