-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'Publish to Heroku' #set whatevername you want to your github job | ||
on: | ||
push: | ||
branches: [main,master] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build, Push and Deploy to Heroku #set the whatever name you want to this step | ||
id: heroku | ||
uses: jctaveras/[email protected] # use the latest version of the action | ||
with: | ||
email: ${{ secrets.HEROKU_EMAIL }} # your heroku email | ||
api_key: ${{ secrets.HEROKU_API_KEY }} # your heroku api key | ||
app_name: ${{ secrets.HEROKU_APP_NAME }} # you aplication name | ||
dockerfile_path: '.' # set the path to the folder wher the Dokerfile is located | ||
options: '' # Docker Build Options | ||
formation: 'web' # Docker Dyno Formation. By default is web |