diff --git a/.github/deploy-main.yml b/.github/deploy-main.yml new file mode 100644 index 0000000..7fb5843 --- /dev/null +++ b/.github/deploy-main.yml @@ -0,0 +1,69 @@ +name: deploy-main + +on: + push: + branches: + - feature/mission-10/워니 + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure SSH + run: | + mkdir -p ~/.ssh + echo "$EC2_SSH_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + + # 접속 별명 설정 + cat >>~/.ssh/config < ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + + # 접속 별명 설정 + cat >>~/.ssh/config <