Skip to content

Infra: Fix Heroku deploy (#4040) #613

Infra: Fix Heroku deploy (#4040)

Infra: Fix Heroku deploy (#4040) #613

name: Deploy to staging
on:
push:
branches:
- 'development'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0' # fetch all tags, default 1
- name: Set version
id: app_version
run: echo ::set-output name=APP_VERSION::$(git describe --always --tags)
- name: Deploy to Heroku
uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_APP_NAME_DEVELOPMENT}}
heroku_email: ${{secrets.HEROKU_EMAIL}}
env:
HD_APP_VERSION: ${{ steps.app_version.outputs.APP_VERSION }}