Merge pull request #6 from Andrew4Coding/staging #18
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
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Deployment CI/CD | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH and Pull Latest Changes | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
port: 22 | |
script: | | |
cd ${{ secrets.PATH_TO_FOLDER }} | |
git pull origin master | |
npm run build | |
./vendor/bin/sail build | |
./vendor/bin/sail down | |
./vendor/bin/sail up -d |