From dfbc2aa895e5e567ee8b5fed0ce1669b6e89936d Mon Sep 17 00:00:00 2001 From: dihwang Date: Tue, 7 Apr 2026 17:15:31 +0900 Subject: [PATCH] =?UTF-8?q?gitactions=20deploy.yml=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..eda7102 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy Quartz + +on: + push: + branches: + - master # 본인이 사용하는 메인 브랜치명으로 수정하세요 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install & Build + run: | + npm ci + npx quartz build + + - name: Deploy to GCE + uses: appleboy/scp-action@master + with: + host: ${{ secrets.GCE_HOST }} + username: ${{ secrets.GCE_USERNAME }} + key: ${{ secrets.GCE_SSH_KEY }} + source: "public/*" + target: "/home/dihwang/white-smith-blog/public" # GCE 서버의 웹 서버 경로 + strip_components: 1