From 374775b1fd8c5aea57cd30fe10d8730fab4b9deb Mon Sep 17 00:00:00 2001 From: Sam Bauch Date: Thu, 27 Jul 2023 15:16:56 -0400 Subject: [PATCH] deploy on merge --- .github/workflows/deploy-oracle.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/deploy-oracle.yml diff --git a/.github/workflows/deploy-oracle.yml b/.github/workflows/deploy-oracle.yml new file mode 100644 index 0000000..391fbbc --- /dev/null +++ b/.github/workflows/deploy-oracle.yml @@ -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