Set Up Secrets For Github Action

Set Up Secrets For Github Action

hitesh920

# Step 6: Set Up Secrets For Github Action


  • Goto your forked repo > settings > secrets > action

Now here under secrets, you need to create four secrets

  • HEROKU_EMAIL
  • HEROKU_API_KEY
  • HEROKU_APP_NAME
  • CONFIG_FILE_URL

Do the same for other three secrets.

HEROKU_API_KEY

  • Goto your heroku account settings Here
  • Scroll down and copy the api key

HEROKU_APP_NAME:

  • Name you would like to give to your heroku app (must be unique)

CONFIG_FILE_URL:

  • Goto that gist you created for the config.env
  • Then click on raw
  • And copy the url then remove the commit id
  • For eg https://gist.githubusercontent.com/ghostmirrorlab/f9b1e6xxxxxxxxxxxxxaaac04520/raw/200d4a93e0eb5ee8d4b0e5a377ce0396a131843e/config.env then the commit id will the one after raw/ and before /config.env

original config.env url:

https://gist.githubusercontent.com/ghostmirrorlab/f9b1e6xxxxxxxxxxxxxaaac04520/raw/200d4a93e0eb5ee8d4b0e5a377ce0396a131843e/config.env

url after removing commit id:

https://gist.githubusercontent.com/ghostmirrorlab/f9b1e6xxxxxxxxxxxxxaaac04520/raw/config.env

  • After removing the commit id use that url for the CONFIG_FILE_URL
  • Once all the four secrets have been added, it should look like this
  • And we are done with the action secrets.


Report Page