Skip to content

Deploy Heroku

Deploy Heroku #59

Workflow file for this run

name: Deploy Heroku # Name of the workflow
on:
push:
branches: [ hotfix/** ]
workflow_run:
workflows: [Webhook Store Test]
types: [completed]
branches: [main] # Workflow to run only when changes are made to `main` branch
jobs:
deploy-private-env:
runs-on: ubuntu-latest # GitHub Runner OS
environment:
name: "webhook-store-private"
steps:
- name: Checkout source code # Checksout the repository in the GitHub runner
uses: 'actions/checkout@v3'
with:
ref: ${{ github.ref }}
submodules: true
fetch-depth: 0
- name: Git Semantic Version
id: version-bump
uses: PaulHatch/[email protected]
with:
bump_each_commit: true
- name: Output Step # Optional: Prints the new version
env:
NEW_TAG: ${{ steps.version-bump.outputs.version }}
run: echo "new tag $NEW_TAG"
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "webhook-store-private" #Must be unique in Heroku
heroku_email: "[email protected]"
deploy-public-env:
runs-on: ubuntu-latest # GitHub Runner OS
environment:
name: "webhook-store-public"
steps:
- name: Checkout source code # Checksout the repository in the GitHub runner
uses: 'actions/checkout@v3'
with:
ref: ${{ github.ref }}
submodules: true
fetch-depth: 0
- name: Git Semantic Version
id: version-bump
uses: PaulHatch/[email protected]
with:
bump_each_commit: true
- name: Output Step # Optional: Prints the new version
env:
NEW_TAG: ${{ steps.version-bump.outputs.version }}
run: echo "new tag $NEW_TAG"
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "webhook-store-public" #Must be unique in Heroku
heroku_email: "[email protected]"