This commit is contained in:
@@ -22,6 +22,9 @@ jobs:
|
||||
- name: Build with Maven
|
||||
run: mvn clean package
|
||||
|
||||
- name: List build directory
|
||||
run: ls -la build/
|
||||
|
||||
- name: Deploy to server via SSH
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
@@ -29,9 +32,8 @@ jobs:
|
||||
username: ${{ secrets.WSS_SSH_USER }}
|
||||
password: ${{ secrets.WSS_SSH_PASSWORD }}
|
||||
port: ${{ secrets.WSS_SSH_PORT }}
|
||||
source: "build/"
|
||||
source: "build/*"
|
||||
target: ${{ secrets.WSS_DEPLOY_PATH }}
|
||||
strip_components: 1
|
||||
|
||||
- name: Restart Docker containers
|
||||
uses: appleboy/ssh-action@v1.2.5
|
||||
|
||||
Reference in New Issue
Block a user