fix deploy stage
This commit is contained in:
parent
4356715473
commit
bc5394ae45
2 changed files with 4 additions and 2 deletions
|
@ -66,5 +66,5 @@ jobs:
|
|||
skip_cleanup: true
|
||||
on:
|
||||
condition: "$LAST_TAG != $CURRENT_VERSION"
|
||||
if: branch = master AND type = push
|
||||
if: branch = master AND type = push AND fork = false
|
||||
after_deploy: make cleanup
|
||||
|
|
4
Makefile
4
Makefile
|
@ -41,8 +41,10 @@ create_db:
|
|||
mysqladmin create $(DB_BITRIX_NAME) --user=$(DB_BITRIX_LOGIN) --password=$(DB_BITRIX_PASS)
|
||||
|
||||
build_release: build_release_dir
|
||||
ifneq ($(LAST_TAG), $(CURRENT_VERSION))
|
||||
ifneq ($(LAST_TAG),$(CURRENT_VERSION))
|
||||
bash bin/build $(VERSION) $(ROOT_DIR)/release/
|
||||
else
|
||||
@exit 0
|
||||
endif
|
||||
|
||||
build_release_dir: build_diff_file
|
||||
|
|
Loading…
Add table
Reference in a new issue