From 02a5c53c3f1505f559b5b04fa1b6b442cb0731ef Mon Sep 17 00:00:00 2001 From: "Chris Baudouin, Jr" Date: Thu, 10 Dec 2020 19:25:52 -0500 Subject: [PATCH] Creates Staging GitHub Action, changes Build name --- .github/workflows/build.yml | 2 +- .github/workflows/deploy-staging.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-staging.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e80d7a8c5..7bc3ec815 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: CI - Build +name: Build on: pull_request: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 000000000..0383bd85b --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -0,0 +1,22 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Deploy - Staging + +on: + push: + branches: + - develop + +jobs: + deploy-staging: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: develop + - name: Push to Staging + uses: dokku/github-action@master + with: + git_remote_url: 'dokku@csh-cloud.oweb.co:brickhack-stage' + ssh_private_key: ${{ secrets.CODERIT_CLOUD_SSH_PRIVATE_KEY }}