Skip to content

Commit

Permalink
deploy on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sbauch committed Jul 27, 2023
1 parent 04226ee commit 374775b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-oracle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Ownership Oracle

on:
pull_request:
branches:
- main
types: [closed]
jobs:
deploy:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest

steps:
- uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{secrets.API_HEROKU_API_KEY}}
heroku_app_name: ownership-rpc
heroku_email: ${{secrets.API_HEROKU_EMAIL}}
buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
justlogin: true

- name: install build plugin
run: heroku plugins:install heroku-builds

- name: deploy tarball
run: cd packages/ownership-oracle && heroku builds:create -a ownership-rpc

0 comments on commit 374775b

Please sign in to comment.