Skip to content

Version 2.8.3 Fix deploy #18

Version 2.8.3 Fix deploy

Version 2.8.3 Fix deploy #18

Workflow file for this run

name: Deploy to web server
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
cd ${{ secrets.PROJECT_PATH }}
git checkout master
git restore .
git pull origin master
rm -rf node_modules/
npm i
git restore package-lock.json
npm run build
cp example.htaccess dist/.htaccess