Skip to content

Commit eac8f01

Browse files
committed
Do everything silently, print only error
1 parent b2c933b commit eac8f01

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/scripts/deploy_deepgit.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
# pull deploy branch
55
cd ~/projects/deepgit
6-
git pull origin deploy
6+
git pull origin deploy --quiet
77

88
# build and deploy the frontend
9-
npm install
9+
npm --silent install
1010
rm -rf dist
11-
npm run build
11+
npm run --silent build
1212
sudo rm -rf /var/www/deepgit-app/*
1313
sudo cp -rf ~/projects/deepgit/dist/* /var/www/deepgit-app/.
1414

1515
# build and deploy the backend
1616
source .venv/bin/activate
1717
cd backend
18-
pip install -r requirements.txt
18+
pip install -r requirements.txt --quiet
1919

2020
# restart nginx and gunicorn
2121
sudo systemctl restart nginx

.github/workflows/deploy_gcp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ jobs:
3030
zone: 'us-central1-f'
3131
ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
3232
script: ${{ github.workspace }}/.github/scripts/deploy_deepgit.sh
33+
34+
- id: 'check-deployment-status'
35+
run: |-
36+
echo '${{ steps.compute-ssh.outputs.stdout }}'
37+
echo '${{ steps.compute-ssh.outputs.stderr }}'

0 commit comments

Comments
 (0)