File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ git pull origin deploy --quiet
99npm --silent install
1010rm -rf dist
1111npm run --silent build
12+ touch dist/$( git log -1 --pretty=format:%H)
1213sudo rm -rf /var/www/deepgit-app/*
1314sudo cp -rf ~ /projects/deepgit/dist/* /var/www/deepgit-app/.
1415
Original file line number Diff line number Diff line change 3232 script : ${{ github.workspace }}/.github/scripts/deploy_deepgit.sh
3333
3434 - id : ' check-deployment-status'
35- run : |-
36- echo '${{ steps.compute-ssh.outputs.stdout }}'
37- echo '${{ steps.compute-ssh.outputs.stderr }}'
35+ uses : ' google-github-actions/ssh-compute@v1'
36+ with :
37+ instance_name : ' instance-1'
38+ project_id : ' deepgit'
39+ user : " user"
40+ zone : ' us-central1-f'
41+ ssh_private_key : ' ${{ secrets.GCP_SSH_PRIVATE_KEY }}'
42+ command : ' ls /var/www/deepgit-app/${{ github.sha }}'
You can’t perform that action at this time.
0 commit comments