Skip to content

Commit

Permalink
Include promotion in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk authored Dec 8, 2021
1 parent 19b5970 commit 0ea28ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,17 @@ jobs:
app-name: data-model-validator-staging
api-key: "${{secrets.HEROKU_API_KEY}}"
path: data-model-validator-site

promote-site:
needs: deploy-site
if: ${{ github.ref == 'refs/heads/master' }}
environment: validator.openactive.io
runs-on: ubuntu-latest
steps:
- name: Promote validator app to production
uses: tiltshift/heroku-promote-app@v1
with:
heroku_app_name: data-model-validator-staging
heroku_api_key: "${{secrets.HEROKU_API_KEY}}"
heroku_email: "[email protected]"

0 comments on commit 0ea28ff

Please sign in to comment.