Update demo plugin workflow
This commit is contained in:
parent
4069932f0d
commit
4e2e0f328c
@ -3,7 +3,12 @@ name: Deploy Demo Plugin
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
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:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@ -36,14 +41,14 @@ jobs:
|
|||||||
|
|
||||||
# Upload the built jar to the Demo server via SFTP
|
# Upload the built jar to the Demo server via SFTP
|
||||||
- name: Upload Jar via SFTP
|
- name: Upload Jar via SFTP
|
||||||
uses: Dylan700/sftp-upload-action@latest
|
uses: Creepios/sftp-action@v1.0.3
|
||||||
with:
|
with:
|
||||||
server: ${{ secrets.DEMO_SFTP_SERVER }}
|
host: ${{ secrets.DEMO_SFTP_SERVER }}
|
||||||
port: 2022
|
port: 2022
|
||||||
username: ${{ secrets.DEMO_SFTP_USER }}
|
username: ${{ secrets.DEMO_SFTP_USER }}
|
||||||
password: ${{ secrets.DEMO_SFTP_PASS }}
|
password: ${{ secrets.DEMO_SFTP_PASS }}
|
||||||
uploads: |
|
localPath: "./target/DemoSpigotPlugin.jar"
|
||||||
./target/DemoSpigotPlugin.jar => ./plugins
|
remotePath: "./plugins"
|
||||||
|
|
||||||
# Restart the remote Demo server
|
# Restart the remote Demo server
|
||||||
- name: Restart Remote Server
|
- name: Restart Remote Server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user