diff --git a/.gitea/workflows/maven.yml b/.gitea/workflows/maven.yml index a85fbb7..9fef2d2 100644 --- a/.gitea/workflows/maven.yml +++ b/.gitea/workflows/maven.yml @@ -25,7 +25,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: build-artifact + name: app-artifacts path: | target/*.jar Dockerfile @@ -53,8 +53,8 @@ jobs: - name: Download artifact uses: actions/download-artifact@v3 with: - name: build-artifact - path: target + name: app-artifacts + path: artifact - name: Install SSH Key uses: shimataro/ssh-key-action@v2 with: @@ -62,8 +62,7 @@ jobs: known_hosts: ${{ secrets.KNOWN_HOSTS }} - name: Deploy to Local Server run: | - scp -r target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} - ls + scp artifact/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} # scp docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} -# scp Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }} + scp artifact/Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}