Version 2.8.3 Fix deploy #18
Workflow file for this run
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 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 |