Skip to content

Commit

Permalink
Update auto_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao1021 authored Apr 12, 2024
1 parent 9e25575 commit d3a2514
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/auto_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
proxy_port: ${{ secrets.PROXY_PORT }}
script_stop: true
script: |
node -v
npm -v
source ~/.nvm/nvm.sh
cd ~/pd2-ticket-v2/frontend
git pull
npm i
rm -rf build
npm run build
echo ${{ secrets.NGINX_SUDO_PASSWORD }} | sudo -S rm -rf /var/www/${{ secrets.DONMAIN }}/html
echo ${{ secrets.NGINX_SUDO_PASSWORD }} | sudo -S cp -r build /var/www/${{ secrets.DONMAIN }}/html

0 comments on commit d3a2514

Please sign in to comment.