From 894b4af0b33f6596d860d634082b12ea8e501a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=99=EC=B0=AC?= <129833370+dongchandev@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:57:22 +0900 Subject: [PATCH] fix: deploy.yml --- .github/workflows/deploy.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c74e4c1..4cc5baf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Web Deploy +name: Trigger Deploy Workflow on: push: @@ -10,23 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Install Dependencies - run: npm install - - - name: Build Project - run: npm run build - - - name: Trigger Deploy Workflow in Another Repo + - name: Trigger Deploy uses: peter-evans/repository-dispatch@v2 with: - token: ${{ secrets.GIT_ACCESS_TOKEN }} - repository: team-b1nd/dodam-web-deploy-config + token: ${{ secrets.GIT_ACCESS_TOKEN } + repository: team-b1nd/dodam-web-deploy-config event-type: trigger-deploy client-payload: | { - "source_directory": "./build", + "repo_name": "${{ github.repository }}", + "branch": "${{ github.ref_name }}", "destination_directory": "/dodam/myinfo" }