Update mavenpublish.yml

This commit is contained in:
小海
2020-04-17 12:13:51 +08:00
committed by GitHub
parent e282e16fd3
commit bd50cfc339

View File

@@ -38,15 +38,15 @@ jobs:
- name: Build jar file
run: mvn -B package --file pom.xml
- name: scp
uses: horochx/deploy-via-scp@v1.0.1
- name: SCP
uses: appleboy/scp-action@master
with:
local: target/blog-0.0.1-SNAPSHOT.jar
remote: /www/wwwroot/api.celess.cn
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: "target/blog-0.0.1-SNAPSHOT.jar"
target: "/www/wwwroot/api.celess.cn"
- name: Run SSH command
uses: garygrossgarten/github-action-ssh@v0.5.0