Skip to content
ADIB AKHTAB edited this page Jan 12, 2022 · 3 revisions

Deploying Leech-Pro on Heroku with Github Workflows

Pre - Requirements

  • A GitHub Account
  • Heroku Account.
  • Some Patience

Deployment

  1. Give a star and Fork this repo .

  2. Go to Repository Settings -> Secrets

secrets

  1. Add the below Required Variables one by one by clicking New Repository Secret everytime.
  • HEROKU_EMAIL Heroku Account Email Id in which the above app will be deployed

  • HEROKU_API_KEY Your Heroku API key, get it from https://dashboard.heroku.com/account

  • HEROKU_APP_NAME Your Heroku app name, Name Must be unique

  • CONFIG_FILE_URL Fill This using any text editor.

    STEP 1 2 3 STEP 4 STEP 5

  • NOTE: Remove commit id from raw link to be able to change variables without updating the CONFIG_FILE_URL in secrets. should be in this form:

https://gist.githubusercontent.com/username/gist-id/raw/config.env
  • You only need to restart your bot after editing config.env gist secret.
  1. After adding all the above Required Variables go to Github Actions tab in your repo

  2. Select Manually Deploy to Heroku workflow as shown below:

    Example Deploy To Heroku

  3. Then click on Run workflow

    Run workflow

  4. Done! your bot will be deployed now.

NOTE

  • Recommended to use 1 App in 1 Heroku account and Don't use bin/fake credits card, because your Heroku account will get banned.
  • Don't change/edit variables from Heroku if you want to change/edit do it in config.env from your gist.

CREDITS

  • Slam Team For Giving An Example To Make GitHub Work Flows & Wiki
Clone this wiki locally