Skip to content

Commit

Permalink
[FEAT] 간단한 CICD 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
devchlee12 authored Jun 17, 2024
1 parent 9a3ac3f commit 90cf0e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name : deploy

on:
push:
branches:
- main

jobs:
SSH:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: ec2 cd
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.SSH_PRIVATE_KEY}}
host: ${{ secrets.HOST }}
username: ${{ secrets.USER}}
script: |
chmod u+x autodep.sh
./autodep.sh

0 comments on commit 90cf0e1

Please sign in to comment.