Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Error while deploying using github to heroku #1

Closed
mr-wh1tehat opened this issue Aug 24, 2021 · 4 comments
Closed

Error while deploying using github to heroku #1

mr-wh1tehat opened this issue Aug 24, 2021 · 4 comments

Comments

@mr-wh1tehat
Copy link

I followed the guide but deloyment failed:
Run akhileshns/heroku-deploy@v3.12.12
Created and wrote to ~/.netrc
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in
Error: Error: Command failed: heroku container:login
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in

@BitQuanta
Copy link

Try revoking Heroku api and update the api var

@AmirulAndalib
Copy link
Member

I followed the guide but deloyment failed:
Run akhileshns/heroku-deploy@v3.12.12
Created and wrote to ~/.netrc
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in
Error: Error: Command failed: heroku container:login
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in

i think you added environements instead of secrets please check it once more

@mr-wh1tehat
Copy link
Author

I followed the guide but deloyment failed:
Run akhileshns/heroku-deploy@v3.12.12
Created and wrote to ~/.netrc
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in
Error: Error: Command failed: heroku container:login
› Warning: Our terms of service have changed:
https://dashboard.heroku.com/terms-of-service
▸ not logged in

i think you added environements instead of secrets please check it once more

Oh yes yes bro sorry :( Now I redeployed fixing it and it is working now. So I'm closing this issue, thanks for the solution.

@1xo2
Copy link

1xo2 commented Jan 11, 2022

go to your Heroku account and go to Account Settings. Scroll to the bottom until you see API Key. Copy this key and go to your project's repository on GitHub.

In your Repo, go to Settings -> Secrets and click on "New Secret". Then enter HEROKU_API_KEY as the name and paste the copied API Key as the value.

name: Deploy

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "YOUR APP's NAME" #Must be unique in Heroku
heroku_email: "YOUR EMAIL"

https://github.com/marketplace/actions/deploy-to-heroku#deploy-with-docker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants