Skip to content

Update ci-pipeline.yml #17

Update ci-pipeline.yml

Update ci-pipeline.yml #17

Workflow file for this run

name: Deploy to Heroku
on:
push:
branches:
- main
- OzPol* # Deploy any branch starting with 'OzPol'
- dev*
workflow_dispatch:
jobs:
deploy-to-heroku:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Unshallow the repository
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Install Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: Authenticate with Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku auth:token
- name: Deploy to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
heroku git:remote -a probooker-app
git push https://heroku:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/probooker-app.git HEAD:main