From 9d01bf664a8b0571caa78380b763e36191afbd87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A7=84?= <111180367+2Jin1031@users.noreply.github.com> Date: Sun, 14 Dec 2025 17:59:59 +0900 Subject: [PATCH] Refactor GitHub Actions workflow for deployment --- .github/workflows/dev-cd.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index f78c59a..0bf878d 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -7,7 +7,7 @@ on: - "**" jobs: - deploy: + build: runs-on: ubuntu-24.04 steps: - name: Checkout source @@ -21,10 +21,18 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + cache-read-only: false - name: Build project run: ./gradlew clean build + push: + needs: build + runs-on: ubuntu-24.04 + steps: + - name: Checkout source + uses: actions/checkout@v4 - name: Login to Docker Hub uses: docker/login-action@v3 @@ -42,6 +50,10 @@ jobs: ${{ secrets.DOCKERHUB_USERNAME }}/crew-wiki:latest ${{ secrets.DOCKERHUB_USERNAME }}/crew-wiki:${{ github.sha }} + deploy: + needs: push + runs-on: ubuntu-24.04 + steps: - name: Deploy to Server uses: appleboy/ssh-action@v1.0.3 with: