fixed typo #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Poker Tool Frontend | |
on: | |
push: | |
branches: | |
- workflow | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.21.3] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: SSH to DigitalOcean Droplet | |
run: | | |
ssh -o StrictHostKeyChecking=no [email protected] 'cd /home/poker-tool && git pull origin workflow && yarn install && yarn build' | |
# - name: Restart Nginx | |
# run: | | |
# ssh -o StrictHostKeyChecking=no user@droplet_ip_address 'sudo systemctl restart nginx' |