ci: route exact limited timestamp release branch to Stage
Deploy Canina / deploy (push) Successful in 2m51s

This commit is contained in:
Canina Hermes committed 2026-10-30 13:28:55 +00:00
1 parent c97ea01ba9
commit dc34c57a0c
4 files changed
+131 -3

No files matched your search

+15 -1
View File
@@ -5,6 +5,7 @@ on:
branches:
- main
- develop
- release/blog-timestamp-limited-20261030
jobs:
deploy:
@@ -12,10 +13,23 @@ jobs:
steps:
- name: Run deploy.sh from within the scripts folder
env:
BRANCH: ${{ github.ref_name }}
DEPLOY_REF: ${{ github.ref }}
DEPLOY_SHA: ${{ github.sha }}
GITHUB_ACTIONS: 'true'
run: |
set -eu
case "${DEPLOY_REF}" in
refs/heads/main) BRANCH=main; STAGE_SOURCE_REF= ;;
refs/heads/develop|refs/heads/release/blog-timestamp-limited-20261030)
BRANCH=develop; STAGE_SOURCE_REF="$DEPLOY_REF" ;;
*) printf 'Unsupported deployment ref\n' >&2; exit 2 ;;
esac
# Bind downloads and both release dispatchers to the exact event commit.
case "$DEPLOY_SHA" in
*[!0-9a-f]*|'') exit 2 ;;
esac
[ "${#DEPLOY_SHA}" -eq 40 ] || exit 2
export BRANCH STAGE_SOURCE_REF
# 1. رفع مشکل DNS و غیرفعال کردن پروکسی برای دامنه محلی
echo "87.248.133.138 git.parsaaghayi.ir" >> /etc/hosts
export http_proxy=""