Skip to content

Adds 2024 to ElectionYears #13

Adds 2024 to ElectionYears

Adds 2024 to ElectionYears #13

Workflow file for this run

name: Migrate and Deploy
concurrency:
group: deployment
cancel-in-progress: true
on:
workflow_dispatch:
# push:
# branches:
# - main
pull_request:
types: [ closed ]
branches:
- main
jobs:
migrate-deploy-staging:
name: Run Migration and Deploy to staging
runs-on: ubuntu-latest
environment:
name: staging
url: "https://${HEROKU_APP_ID}.herokuapp.com"
steps:
- uses: actions/checkout@v3
- id: typeorm
uses: ./.github/actions/typeorm
with:
command: migration:run
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_ID: ${{ secrets.HEROKU_APP_ID }}
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_ID }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
migrate-deploy-production:
needs: migrate-deploy-staging
name: Run Migration and Deploy to production
runs-on: ubuntu-latest
environment:
name: production
url: "https://${HEROKU_APP_ID}.herokuapp.com"
steps:
- uses: actions/checkout@v3
- id: typeorm
uses: ./.github/actions/typeorm
with:
command: migration:run
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_ID: ${{ secrets.HEROKU_APP_ID }}
- uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_ID }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}