diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..0f1473d --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI + +# dev 브랜치 전용 CI (요청: dev 에만). +on: + push: + branches: [dev] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '22' + # cache 제거: Gitea 캐시 서버 미연결 시 'Save cache' 후처리가 수 분 hang → '가짜 실패' 유발(sb-front 와 동일) + + - name: Install dependencies + run: npm ci + + # build = vue-tsc 타입체크 + vite 빌드 (test/lint 스크립트는 아직 없음) + - name: Build + run: npm run build + + - name: Upload build output + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist + retention-days: 7 \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 05a85b6..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -# GitLab CI — dognation 프론트 (Vue3 + TS + Vite / Capacitor) -# dev 브랜치 푸시에서만 실행. build 스크립트가 vue-tsc 타입체크 + vite 빌드를 함께 수행. -image: node:22 - -variables: - npm_config_cache: "$CI_PROJECT_DIR/.npm" - -cache: - key: "$CI_COMMIT_REF_SLUG" - paths: - - .npm/ - -stages: - - build - -build: - stage: build - rules: - - if: '$CI_COMMIT_BRANCH == "dev"' - script: - - npm ci - - npm run build # vue-tsc --noEmit && vite build - artifacts: - paths: - - dist/ - expire_in: 1 week \ No newline at end of file