From 4e2e0f328c09ad3471f69011ba55a184a09a49eb Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 25 Apr 2024 17:03:40 -0400 Subject: [PATCH] Update demo plugin workflow --- .gitea/workflows/deploy-demo-plugin.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml index c181690..4d0dbd4 100644 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ b/.gitea/workflows/deploy-demo-plugin.yml @@ -3,7 +3,12 @@ name: Deploy Demo Plugin on: push: branches: ["master"] - paths: [".gitea/workflows/deploy-demo-plugin.yml", "DemoSpigotPlugin/**", "!DemoSpigotPlugin/README.md"] + paths: + [ + ".gitea/workflows/deploy-demo-plugin.yml", + "DemoSpigotPlugin/**", + "!DemoSpigotPlugin/README.md", + ] jobs: docker: @@ -36,14 +41,14 @@ jobs: # Upload the built jar to the Demo server via SFTP - name: Upload Jar via SFTP - uses: Dylan700/sftp-upload-action@latest + uses: Creepios/sftp-action@v1.0.3 with: - server: ${{ secrets.DEMO_SFTP_SERVER }} + host: ${{ secrets.DEMO_SFTP_SERVER }} port: 2022 username: ${{ secrets.DEMO_SFTP_USER }} password: ${{ secrets.DEMO_SFTP_PASS }} - uploads: | - ./target/DemoSpigotPlugin.jar => ./plugins + localPath: "./target/DemoSpigotPlugin.jar" + remotePath: "./plugins" # Restart the remote Demo server - name: Restart Remote Server @@ -51,4 +56,4 @@ jobs: with: panel-url: ${{ secrets.PTERO_URL }} api-key: ${{ secrets.PTERO_API_KEY }} - server-id: ${{ secrets.DEMO_SERVER_ID }} \ No newline at end of file + server-id: ${{ secrets.DEMO_SERVER_ID }}