test #8

Closed
Abdulbari wants to merge 3 commits from test into main
3 changed files with 8 additions and 8 deletions

View File

@@ -1,15 +1,15 @@
name: sgeUpdated CI/CD
on:
push:
branches:
- main
pull_request:
types:
- closed # Fires when a PR is closed (either merged or manually closed)
branches:
- main
- main # Only when PR targets main
jobs:
deploy:
if: github.event.pull_request.merged == true # Run only if the PR was merged (not just closed)
runs-on: ubuntu-latest
steps:
@@ -23,7 +23,7 @@ jobs:
- name: Run deploy script on server
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
echo "✅ Connected to server. Running deploy script..."
echo "✅ PR merged into main — running deploy script..."
cd /home/ubuntu/Bgreen/sgeUpdated
./deploy.sh
EOF

View File

@@ -11,7 +11,7 @@
</parent>
<groupId>com.sgs</groupId>
<artifactId>sgs</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.4-SNAPSHOT</version>
<name>sgs</name>
<description>SGS project for Spring Boot</description>
<properties>

View File

@@ -1,6 +1,6 @@
{
"name": "sgs-web",
"version": "1.0.2",
"version": "1.0.4",
"private": true,
"dependencies": {
"@apollo/client": "^3.13.8",