Skip to content

Commit

Permalink
Create main.yml for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaungthant1083 authored Oct 13, 2024
1 parent 2ee30cb commit ddd382e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy to Prod
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy To Server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }}
script: "cd /home/ubuntu/devops && ./deploy.sh"

0 comments on commit ddd382e

Please sign in to comment.