diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fe8e1e..7f44b5f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,47 +9,21 @@ jobs: runs-on: ubuntu-latest steps: - # 레포지토리 체크아웃 단계 - name: 레포지토리 체크아웃 중.. uses: actions/checkout@v2 - # Node.js 설치 단계 - - name: Node.js 설치중.. + - name: node 설치중.. uses: actions/setup-node@v2 with: node-version: '18.18.2' - # pnpm 설치 단계 - name: pnpm 설치중.. run: npm install -g pnpm - # 종속성 설치 단계 - name: 종속성 설치중... run: pnpm install working-directory: ./fe - # 빌드 단계 - name: 빌드 중.. run: pnpm build - working-directory: ./fe - - # GitHub Token을 사용하여 배포 또는 Git 작업 - - name: 배포 준비 중... - env: - SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} - run: | - echo "Adding SSH key to authenticate..." - mkdir -p ~/.ssh - echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts - git config --global user.email "itskarnel@kyonggi.ac.kr" - git config --global user.name "karnelll" - cd ./fe - if [ -n "$(git status --porcelain)" ]; then - git add . - git commit -m "Auto commit by GitHub Actions" - git push git@github.com:Team-pingping/pingping-FE.git HEAD:main - else - echo "No changes to commit" - fi + working-directory: ./fe \ No newline at end of file