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
9
9
npm --silent install
10
10
rm -rf dist
11
11
npm run --silent build
12
+ touch dist/$( git log -1 --pretty=format:%H)
12
13
sudo rm -rf /var/www/deepgit-app/*
13
14
sudo cp -rf ~ /projects/deepgit/dist/* /var/www/deepgit-app/.
14
15
Original file line number Diff line number Diff line change 32
32
script : ${{ github.workspace }}/.github/scripts/deploy_deepgit.sh
33
33
34
34
- 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