From 69bdbb51d620985a7bfe3961cbfe2f53d502958b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=91=9E=E4=BA=95=20=E7=AE=95=E6=9C=88?= <105696149+MizuiMiduki@users.noreply.github.com> Date: Sat, 2 Nov 2024 15:39:25 +0900 Subject: [PATCH] fix --- .github/workflows/auto-deploy.yml | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml index e79eff5..7f8b6e4 100644 --- a/.github/workflows/auto-deploy.yml +++ b/.github/workflows/auto-deploy.yml @@ -3,26 +3,26 @@ on: push: branches: - main - name: 🚀 Deploy - jobs: - build: - runs-on: ubuntu-latest - timeout-minutes: 60 +name: 🚀 Deploy +jobs: +build: + runs-on: ubuntu-latest + timeout-minutes: 60 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - - name: 🚚SetUp - run: echo "$SSH_PRIVATE_KEY" > .ssh/id_rsa && chmod 600 .ssh/id_rsa - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + - name: 🚚SetUp + run: echo "$SSH_PRIVATE_KEY" > .ssh/id_rsa && chmod 600 .ssh/id_rsa + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - - name: 📂 Sync files - run: rsync -rlptgoD -O --delete --exclude ".git/" --exclude ".ssh/" -e "ssh -i .ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p ${REMOTE_PORT}" ./public/ ${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_PATH} - env: - REMOTE_PATH: ${{ secrets.REMOTE_PATH }} - REMOTE_HOST: ${{ secrets.REMOTE_HOST }} - REMOTE_USER: ${{ secrets.REMOTE_USER }} - REMOTE_PORT: ${{ secrets.REMOTE_PORT }} + - name: 📂 Sync files + run: rsync -rlptgoD -O --delete --exclude ".git/" --exclude ".ssh/" -e "ssh -i .ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p ${REMOTE_PORT}" ./public/ ${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_PATH} + env: + REMOTE_PATH: ${{ secrets.REMOTE_PATH }} + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + REMOTE_PORT: ${{ secrets.REMOTE_PORT }}