Running deployment 🚀 #42
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: CD | |
run-name: Running deployment 🚀 | |
on: | |
push: | |
branches: [v2] | |
jobs: | |
Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.MUTANT_HOST }} | |
username: ${{ secrets.MUTANT_USERNAME }} | |
key: ${{ secrets.MUTANT_SECRET }} | |
port: ${{ secrets.MUTANT_PORT }} | |
script: | | |
cd repositories/airmutasi-laravel | |
git pull origin v2 | |
npm install | |
npm run build | |
php artisan migrate |