ci(workflow): 更新分支名称和API地址配置
Some checks failed
CI / build (20.15.1) (push) Has been cancelled

将dev分支重命名为develop分支
统一所有分支的API地址为https://api.hifast.biz
This commit is contained in:
shanshanzhong 2026-01-03 19:47:44 -08:00
parent a211035025
commit 9eff6aa40d

View File

@ -4,12 +4,12 @@ on:
push: push:
branches: branches:
- main - main
- dev - develop
- cicd - cicd
pull_request: pull_request:
branches: branches:
- main - main
- dev - develop
- cicd - cicd
env: env:
@ -319,10 +319,10 @@ jobs:
- name: 根据分支动态设置API地址 - name: 根据分支动态设置API地址
run: | run: |
if [ "${{ github.ref_name }}" = "main" ]; then if [ "${{ github.ref_name }}" = "main" ]; then
echo "NEXT_PUBLIC_API_URL=https://api.airoport.co" >> $GITHUB_ENV echo "NEXT_PUBLIC_API_URL=https://api.hifast.biz" >> $GITHUB_ENV
echo "为main分支设置生产环境API地址" echo "为main分支设置生产环境API地址"
elif [ "${{ github.ref_name }}" = "develop" ]; then elif [ "${{ github.ref_name }}" = "develop" ]; then
echo "NEXT_PUBLIC_API_URL=https://api.kxsw.us" >> $GITHUB_ENV echo "NEXT_PUBLIC_API_URL=https://api.hifast.biz" >> $GITHUB_ENV
echo "为 develop 分支设置开发环境API地址" echo "为 develop 分支设置开发环境API地址"
else else
echo "NEXT_PUBLIC_API_URL=https://api.hifast.biz" >> $GITHUB_ENV echo "NEXT_PUBLIC_API_URL=https://api.hifast.biz" >> $GITHUB_ENV