wrong language #1526
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 to staging | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy staging box | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
script_stop: true | |
script: | | |
cd /opt/staging_web || { echo "No directory found"; exit 1; } | |
git pull origin dev | |
npm ci | |
npm run build | |
rm -r /var/www/html/staging.holodex.net/* | |
cp -r dist/* /var/www/html/staging.holodex.net/ |