GitHub Actions로 Heroku에 배포
                                            
                                                
                                                
                                                
                                                
                                                
                                                 2765 단어  경 6GitHubActions
                    
htps : // 기주 b. 코 m / r tp ぁ세 / 아 c 치온 s /에서 p ぉ y - 헤로 쿠
워크플로 파일 만들기
github/workflows/main.ymlname: Deploy
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/[email protected] # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ${{secrets.HEROKU_APP}}
          heroku_email: ${{secrets.HEROKU_EMAIL}}
 GitHub에 Secret 등록
워크플로에서 secrets를 지정한 항목을 등록합니다.
name: Deploy
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/[email protected] # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ${{secrets.HEROKU_APP}}
          heroku_email: ${{secrets.HEROKU_EMAIL}}
워크플로에서 secrets를 지정한 항목을 등록합니다.
Settings -> Secrets 에서 등록
Heroku의 API Key 취득 방법

GitHub로 푸시
여기까지 할 수 있으면 나머지는 원격 master 브랜치로 푸시하면됩니다.
 
무사히 워크플로가 완료되었습니다!
엄청 쉽게 Heroku 배포할 수 있으므로 대응해 두고 손해는 없을까 생각합니다.
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(GitHub Actions로 Heroku에 배포), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/teracy164/items/aa37906d43c535884bb6
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
Reference
이 문제에 관하여(GitHub Actions로 Heroku에 배포), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/teracy164/items/aa37906d43c535884bb6텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)