mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
fix(workflow): also add backend data host for frontend build
This commit is contained in:
parent
31538946b2
commit
b8d6a84751
8
.github/workflows/frontend_build.yml
vendored
8
.github/workflows/frontend_build.yml
vendored
@ -45,6 +45,14 @@ jobs:
|
||||
CI: true
|
||||
run: (cd frontend && pnpm install --frozen-lockfile)
|
||||
|
||||
- name: Set environment for branch
|
||||
run: |
|
||||
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
|
||||
echo "BACKEND_DATA_HOST=https://hangar.papermc.io" >> $GITHUB_ENV
|
||||
else
|
||||
echo "BACKEND_DATA_HOST=https://hangar.papermc.dev" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Lint frontend
|
||||
env:
|
||||
CI: true
|
||||
|
Loading…
Reference in New Issue
Block a user