bug fix #41
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: Pull changes and deploy API | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: self-hosted | |
steps: | |
- name: Executing remote command | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: | | |
cd ${{ secrets.APP_FOLDER }} && git pull | |
source ~/.nvm/nvm.sh | |
nvm use ${{ secrets.NVM_VERSION }} | |
npm install | |
touch ${{ secrets.ENV_FILE_CONTENT }} | |
echo "${{ secrets.ENV_FILE_CONTENT }}" >> .env | |
supervisorctl restart ${{ secrets.SUPERVISOR_SERVICE_NAME }} |