Release and deploy only from master (#1)

* feat: release and deploy only on master

* todo
This commit is contained in:
Yanislav Igonin 2021-10-24 10:41:48 +03:00 committed by GitHub
parent 3a8077f85d
commit efd3d7a4fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
name: Push name: Push
# TODO: Need to be changed into separate configs after
on: [push, release] on: [push, release]
jobs: jobs:
@ -26,6 +26,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# TODO: Need to be removed after separate configs are made
if: github.ref == 'refs/heads/master'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -51,6 +54,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# TODO: Need to be removed after separate configs are made
if: github.ref == 'refs/heads/master'
steps: steps:
- name: Deploy - name: Deploy
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master