From 1f43f3274a75bf1181fe3a752987aeaa4d654627 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Mon, 26 Jan 2026 17:42:55 +0530 Subject: [PATCH] better reployment --- .gitea/workflows/build.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e1f6d57..fafdc0f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -23,26 +23,14 @@ jobs: - name: Build run: ./gradlew build -x test --no-daemon --info --stacktrace - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: trisolarisserver-jar - path: build/libs/TrisolarisServer-*-SNAPSHOT.jar - - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: trisolarisserver-jar - path: /tmp/trisolarisserver-artifact + - name: Build (skip tests) + env: + GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000" + run: ./gradlew build -x test --no-daemon - name: Deploy jar and restart run: | set -e sudo mkdir -p /opt/deploy/TrisolarisServer/build/libs - sudo cp -f /tmp/trisolarisserver-artifact/*.jar /opt/deploy/TrisolarisServer/build/libs/ - sudo systemctl restart TrisolarisServer.service \ No newline at end of file + sudo cp -f build/libs/*.jar /opt/deploy/TrisolarisServer/build/libs/ + sudo systemctl restart TrisolarisServer.service