diff --git a/.github/workflows/deploy_api.yml b/.github/workflows/deploy_api.yml index ea36011c..5ae0a0cc 100644 --- a/.github/workflows/deploy_api.yml +++ b/.github/workflows/deploy_api.yml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - uses: akhileshns/heroku-deploy@v3.13.15 # This is the action - with: - heroku_api_key: ${{secrets.HEROKU_API_KEY}} - heroku_app_name: "case-study-sales-api" #Must be unique in Heroku - heroku_email: "kakimomokuri@gmail.com" - appdir: "api" # <- This will point to the api folder in your project + - name: Deploy to Heroku + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: | + git remote add heroku https://git.heroku.com/${{ secrets.HEROKU_APP_NAME }}.git + git subtree push --prefix api heroku main # mainブランチをHerokuのmasterブランチにデプロイ