Add "former" to previous role #12
This file contains hidden or 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 server | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| jobs: | |
| deploy: | |
| name: deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: executing remote ssh commands | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ssh.mutorials.org | |
| port: 53667 | |
| username: mutorial | |
| key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| script: | | |
| source /home/mutorial/nodevenv/programs/Mutorials/22/bin/activate && cd /home/mutorial/programs/Mutorials | |
| rm -rf {*,.*} | |
| git clone https://github.com/The-Mu-Foundation/Mutorials . | |
| npm install | |
| npm run build | |
| cloudlinux-selector restart --json --interpreter nodejs --app-root programs/Mutorials |