2024-04-26 09:39:06 +00:00
|
|
|
name: "Quality Check"
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
qs:
|
|
|
|
name: "Qualty Check"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-04-27 18:20:19 +00:00
|
|
|
image: "git.euph.dev/actions/runner-java-21:latest"
|
2024-04-26 09:39:06 +00:00
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
|
|
|
- name: "CHECK"
|
|
|
|
run: mvn checkstyle:check -e
|
2024-04-29 16:14:01 +00:00
|
|
|
- name: "javadoc"
|
|
|
|
run: |
|
|
|
|
mvn package
|
|
|
|
mvn javadoc:javadoc -f pom.xml
|
|
|
|
- name: "Deploy Javadoc"
|
|
|
|
run: |
|
|
|
|
mkdir ~/.ssh
|
|
|
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
|
|
|
ssh ${{ vars.SSH_HOST }} 'rm -rf ~/webroot/*'
|
|
|
|
scp -r ./javadoc_build/* ${{ vars.SSH_HOST }}:~/webroot/
|
2024-04-26 09:39:06 +00:00
|
|
|
|