Skip to content

menambah Procfile untuk deploy di heroku (#35) #83

menambah Procfile untuk deploy di heroku (#35)

menambah Procfile untuk deploy di heroku (#35) #83

Workflow file for this run

name: 🚀 Deploy website on push
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 📂 Sync Files
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
port: ${{ secrets.SSH_PORT }}
script: cd /home/kodingke/shortkeun.xyz && git pull origin main
- name: ♻️ Restart Server...
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
port: ${{ secrets.SSH_PORT }}
script: cd /home/kodingke/shortkeun.xyz && touch tmp/restart.txt
- name: ✅ Telegram Notification Success
uses: appleboy/telegram-action@master
if: ${{ success() }}
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
✅ `berhasil` *${{ github.actor }}* trigger deployment
📩 Commit message: *${{ github.event.commits[0].message }}*
🧑‍💻 Developer: *${{github.actor}}*
🔗 See changes: [CEK APP](https://github.com/${{ github.repository }}/commit/${{github.sha}})
format: markdown
disable_web_page_preview: "True"
- name: ❌ Telegram Notification Failed
uses: appleboy/telegram-action@master
if: ${{ failure() }}
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
❌ `gagal` *${{ github.actor }}* trigger deployment
📩 Commit message: *${{ github.event.commits[0].message }}*
🧑‍💻 Developer: *${{github.actor}}*
🔗 See changes: [CEK APP](https://github.com/${{ github.repository }}/commit/${{github.sha}})
format: markdown
disable_web_page_preview: "True"