nugawiki

./categories/dev-ops

Github Actions 배포 자동화

업데이트 2026-07-21 조회수

Github Actions 배포 자동화

워크플로 예시 골격:

# .github/workflows/deploy.yml
name: Deploy
on:
  push:
    branches: [ main ]
jobs:
  build-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: npm ci && npm run build
      - name: Deploy
        run: echo "배포 스크립트/시크릿은 Actions Secrets에"

시크릿·SSH 키 등은 Repository Secrets에만 보관.

./comments