From efd3d7a4fef268c320e8c7eda35703b801222c58 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sun, 24 Oct 2021 10:41:48 +0300 Subject: [PATCH] Release and deploy only from master (#1) * feat: release and deploy only on master * todo --- .github/workflows/push.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e411c49..e0c050e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,5 +1,5 @@ name: Push - +# TODO: Need to be changed into separate configs after on: [push, release] jobs: @@ -26,6 +26,9 @@ jobs: runs-on: ubuntu-latest + # TODO: Need to be removed after separate configs are made + if: github.ref == 'refs/heads/master' + steps: - name: Checkout uses: actions/checkout@v2 @@ -51,6 +54,9 @@ jobs: runs-on: ubuntu-latest + # TODO: Need to be removed after separate configs are made + if: github.ref == 'refs/heads/master' + steps: - name: Deploy uses: appleboy/ssh-action@master