From 494266d2eade184d84bb558dac54902eccb8d8fa Mon Sep 17 00:00:00 2001 From: Braydon Date: Wed, 24 Apr 2024 17:03:52 -0700 Subject: [PATCH 1/5] Update .gitea/workflows/deploy-demo-plugin.yml --- .gitea/workflows/deploy-demo-plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml index c181690..26821ee 100644 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ b/.gitea/workflows/deploy-demo-plugin.yml @@ -32,7 +32,7 @@ jobs: # Build and package the jar - name: Build Jar - run: mvn clean package -q -T4C + run: mvn clean package -T4C # Upload the built jar to the Demo server via SFTP - name: Upload Jar via SFTP From 278339644630f804d74bc1ac86ebcc5094f86eb9 Mon Sep 17 00:00:00 2001 From: Braydon Date: Wed, 24 Apr 2024 17:12:08 -0700 Subject: [PATCH 2/5] Update .gitea/workflows/deploy-demo-plugin.yml --- .gitea/workflows/deploy-demo-plugin.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml index 26821ee..16d92e1 100644 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ b/.gitea/workflows/deploy-demo-plugin.yml @@ -34,6 +34,8 @@ jobs: - name: Build Jar run: mvn clean package -T4C + - run: pwd + # Upload the built jar to the Demo server via SFTP - name: Upload Jar via SFTP uses: Dylan700/sftp-upload-action@latest From a43c40d88fd0537601701bd98908872404a8430f Mon Sep 17 00:00:00 2001 From: Braydon Date: Wed, 24 Apr 2024 17:22:46 -0700 Subject: [PATCH 3/5] Update .gitea/workflows/deploy-demo-plugin.yml --- .gitea/workflows/deploy-demo-plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml index 16d92e1..8bea078 100644 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ b/.gitea/workflows/deploy-demo-plugin.yml @@ -45,7 +45,7 @@ jobs: username: ${{ secrets.DEMO_SFTP_USER }} password: ${{ secrets.DEMO_SFTP_PASS }} uploads: | - ./target/DemoSpigotPlugin.jar => ./plugins + ./target/DemoSpigotPlugin.jar => /plugins # Restart the remote Demo server - name: Restart Remote Server From dbd6e825f1e445aa4a290b77a24f93f5acee7be7 Mon Sep 17 00:00:00 2001 From: Braydon Date: Wed, 24 Apr 2024 17:25:00 -0700 Subject: [PATCH 4/5] Update .gitea/workflows/deploy-demo-plugin.yml --- .gitea/workflows/deploy-demo-plugin.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml index 8bea078..6ad486b 100644 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ b/.gitea/workflows/deploy-demo-plugin.yml @@ -34,18 +34,16 @@ jobs: - name: Build Jar run: mvn clean package -T4C - - run: pwd - # Upload the built jar to the Demo server via SFTP - name: Upload Jar via SFTP - uses: Dylan700/sftp-upload-action@latest + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 with: server: ${{ secrets.DEMO_SFTP_SERVER }} port: 2022 username: ${{ secrets.DEMO_SFTP_USER }} password: ${{ secrets.DEMO_SFTP_PASS }} - uploads: | - ./target/DemoSpigotPlugin.jar => /plugins + local_path: "./target/DemoSpigotPlugin.jar" + remote_path: "/plugins" # Restart the remote Demo server - name: Restart Remote Server From 16b295a784b502dfad09d475720cea2690f6defe Mon Sep 17 00:00:00 2001 From: Braydon Date: Wed, 24 Apr 2024 17:46:43 -0700 Subject: [PATCH 5/5] Delete .gitea/workflows/deploy-demo-plugin.yml --- .gitea/workflows/deploy-demo-plugin.yml | 54 ------------------------- 1 file changed, 54 deletions(-) delete mode 100644 .gitea/workflows/deploy-demo-plugin.yml diff --git a/.gitea/workflows/deploy-demo-plugin.yml b/.gitea/workflows/deploy-demo-plugin.yml deleted file mode 100644 index 6ad486b..0000000 --- a/.gitea/workflows/deploy-demo-plugin.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Deploy Demo Plugin - -on: - push: - branches: ["master"] - paths: [".gitea/workflows/deploy-demo-plugin.yml", "DemoSpigotPlugin/**", "!DemoSpigotPlugin/README.md"] - -jobs: - docker: - strategy: - matrix: - java-version: ["17"] - maven-version: ["3.8.5"] - runs-on: "ubuntu-latest" - defaults: - run: - working-directory: "./DemoSpigotPlugin" - - # Steps to run - steps: - # Checkout the repo - - name: Checkout - uses: actions/checkout@v4 - - # Setup Java and Maven - - name: Set up JDK and Maven - uses: s4u/setup-maven-action@v1.12.0 - with: - java-version: ${{ matrix.java-version }} - distribution: "zulu" - maven-version: ${{ matrix.maven-version }} - - # Build and package the jar - - name: Build Jar - run: mvn clean package -T4C - - # Upload the built jar to the Demo server via SFTP - - name: Upload Jar via SFTP - uses: wlixcc/SFTP-Deploy-Action@v1.2.4 - with: - server: ${{ secrets.DEMO_SFTP_SERVER }} - port: 2022 - username: ${{ secrets.DEMO_SFTP_USER }} - password: ${{ secrets.DEMO_SFTP_PASS }} - local_path: "./target/DemoSpigotPlugin.jar" - remote_path: "/plugins" - - # Restart the remote Demo server - - name: Restart Remote Server - uses: hwalker928/ptero-gitsync@v1.0 - with: - panel-url: ${{ secrets.PTERO_URL }} - api-key: ${{ secrets.PTERO_API_KEY }} - server-id: ${{ secrets.DEMO_SERVER_ID }} \ No newline at end of file