将dev分支重命名为develop分支 统一所有分支的API地址为https://api.hifast.biz
This commit is contained in:
parent
a211035025
commit
9eff6aa40d
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user