Commit 715785d 1 parent 09cda6c commit 715785d Copy full SHA for 715785d
File tree 1 file changed +22
-3
lines changed
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Continuous Integration
1
+ çname : Continuous Integration
2
2
3
3
on :
4
4
push :
19
19
distribution : ' temurin'
20
20
java-version : ' 21'
21
21
22
- - name : Build JAR with Gradle
22
+ - name : Build Foxy with Gradle
23
23
run : |
24
24
chmod +x ./gradlew
25
25
./gradlew :foxy:shadowJar --no-daemon
45
45
scp -o StrictHostKeyChecking=no -P $SSH_PORT foxy/build/libs/Foxy-*.jar $SSH_USER@$SERVER:$SSH_TARGET/ > /dev/null 2>&1
46
46
47
47
ssh -o StrictHostKeyChecking=no -p $SSH_PORT $SSH_USER@$SERVER "echo 'Deploy completed on server $((index + 1))!'"
48
- done
48
+ done
49
+
50
+ - name : Build Foxy Website with Gradle
51
+ run : |
52
+ chmod +x ./gradlew
53
+ echo "Building SCSS files"
54
+ ./gradlew :web:compileSass
55
+ ./gradlew :web:shadowJar --no-daemon
56
+
57
+ - name : Deploying Foxy Website to server
58
+ env :
59
+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
60
+ WEBSITE_SERVER : ${{ secrets.WEBSITE_SERVER }}
61
+ SSH_WEBSITE_USER : ${{ secrets.SSH_USER }}
62
+ SSH_PORT : ${{ secrets.SSH_PORT }}
63
+ SSH_WEBSITE_TARGET : ${{ secrets.SSH_WEBSITE_TARGET }}
64
+
65
+ run : |
66
+ echo "Finally deploying Jar to server :)"
67
+ scp -o StrictHostKeyChecking=no -P $SSH_PORT web/build/libs/FoxyWeb-*.jar $SSH_USER@WEBSITE_SERVER:$SSH_WEBSITE_TARGET/ > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments