From 8a3b2e89ae5a430de4990380e57b823379a23a7f Mon Sep 17 00:00:00 2001 From: waterricecake Date: Thu, 17 Oct 2024 17:12:27 +0900 Subject: [PATCH] =?UTF-8?q?chore=20:=20dev=20CI/CD=20=ED=8C=8C=EC=9D=B4?= =?UTF-8?q?=ED=94=84=EB=9D=BC=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 2 +- .github/workflows/frontend-dev-CICD.yml | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cca22c..df21d1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '20' - name: Install dependencies run: npm install diff --git a/.github/workflows/frontend-dev-CICD.yml b/.github/workflows/frontend-dev-CICD.yml index 2308adf..4624d11 100644 --- a/.github/workflows/frontend-dev-CICD.yml +++ b/.github/workflows/frontend-dev-CICD.yml @@ -1,13 +1,19 @@ -name: Build Test +name: Dev CI/CD on: push: - branches: - - dev + branches: [ dev ] + +permissions: + contents: read jobs: build: - runs-on: dev + runs-on: + group: Default + labels: [ self-hosted, dev ] + permissions: + pull-requests: write steps: - name: Checkout code @@ -16,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '20' - name: Install dependencies run: npm install @@ -24,5 +30,5 @@ jobs: - name: Run build run: npm run build - - name: 빌드 파일 deploy 파일로 이동 - run: cp -f /dist /home/ubuntu/dist \ No newline at end of file + - name: 빌드 파일 + run: cp -rf ./dist ~/ \ No newline at end of file