Skip to content

Update main.yml

Update main.yml #10

Workflow file for this run

name: 'Publish to Heroku' #set whatevername you want to your github job
on:
push:
branches: [main,master]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
registry: https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- 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: . # set the path to the folder wher the Dokerfile is located