Skip to content

Commit

Permalink
feat: 머지되면 자동 배포 action 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang committed Aug 12, 2024
1 parent 561f07f commit 25435ae
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: deploy

on:
push:
branches: ["main"]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-24.04
timeout-minutes: 10

permissions:
id-token: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_IP }}
username: ${{ secrets.REMOTE_SSH_ID }}
key: ${{ secrets.REMOTE_SSH_KEY }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
cd $HOME
sh sw_css-deploy.sh

0 comments on commit 25435ae

Please sign in to comment.