.github\workflows\workflows.yml
name: Github Pages Deploy on: push: branches: - "master" jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [14.x] steps: - name: Checkout uses: actions/checkout@v1 - name: Install and build run: npm install && npm run build env: CI: "" # 경고를 에러로 보지 않게 함 - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.1 with: branch: gh-pages # The branch the action should deploy to. folder: build # The folder the action should deploy.
※ 경고가 있을시 에러로 판단해서 빌드가 되지 않은 오류가 발생 하여서 아래 코드 추가하였더니 해결
env:
CI: "" # 경고를 에러로 보지 않게 함
↓ 이렇게 나오면 성공!!!
확인가능한 github
https://github.com/leehyemimi/react-voca/tree/gh-pages