diff --git a/.gitea/workflows/maven.yaml b/.gitea/workflows/maven.yaml index eabb6f7..c405c9f 100644 --- a/.gitea/workflows/maven.yaml +++ b/.gitea/workflows/maven.yaml @@ -59,6 +59,8 @@ jobs: with: key: ${{ secrets.SSH_PRIVATE_KEY }} known_hosts: ${{ secrets.KNOWN_HOSTS }} + - name: Create Remote Directory + run: ssh ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} mkdir -p ${{ vars.DEPLOY_PATH }} - name: Deploy to Local Server run: scp -r artifact/* ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} - name: Build and Run Docker Image with Docker Compose