mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
Release and deploy only from master (#1)
* feat: release and deploy only on master * todo
This commit is contained in:
parent
3a8077f85d
commit
efd3d7a4fe
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user