This commit is contained in:
@@ -23,26 +23,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew build -x test --no-daemon --info --stacktrace
|
run: ./gradlew build -x test --no-daemon --info --stacktrace
|
||||||
|
- name: Build (skip tests)
|
||||||
- name: Upload artifact
|
env:
|
||||||
uses: actions/upload-artifact@v4
|
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000"
|
||||||
with:
|
run: ./gradlew build -x test --no-daemon
|
||||||
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: Deploy jar and restart
|
- name: Deploy jar and restart
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
sudo mkdir -p /opt/deploy/TrisolarisServer/build/libs
|
sudo mkdir -p /opt/deploy/TrisolarisServer/build/libs
|
||||||
sudo cp -f /tmp/trisolarisserver-artifact/*.jar /opt/deploy/TrisolarisServer/build/libs/
|
sudo cp -f build/libs/*.jar /opt/deploy/TrisolarisServer/build/libs/
|
||||||
sudo systemctl restart TrisolarisServer.service
|
sudo systemctl restart TrisolarisServer.service
|
||||||
|
|||||||
Reference in New Issue
Block a user