Skip to content

Commit

Permalink
ci:Apiデプロイ
Browse files Browse the repository at this point in the history
GitHub Actions workflow for API deployment

Added deploy_api.yml to automate the deployment process for the API. Configured to trigger on pushes to the develop branch, using Heroku for deployment with necessary credentials and settings.
  • Loading branch information
k2works committed Oct 4, 2024
1 parent d044727 commit bc0d12e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: akhileshns/[email protected] # 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ブランチにデプロイ

0 comments on commit bc0d12e

Please sign in to comment.