simplify boostlook css importing (#432)

remove css/branch specific handling in favor of single source
This commit is contained in:
Julio C. Estrada
2025-04-01 16:14:02 -04:00
committed by GitHub
parent 525e104ce5
commit 36e6ab7728
2 changed files with 3 additions and 8 deletions

View File

@@ -113,8 +113,8 @@ jobs:
run: |
set -x
# Comment out dynamic branch selection for now
# BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
export BOOSTLOOK_BRANCH="${{ github.event.inputs.boostlook_branch || 'master' }}"
BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
export BOOSTLOOK_BRANCH
./build.sh
- name: Setup Ninja

View File

@@ -244,10 +244,6 @@ function getAllTasks (opts, sourcemaps, postcssPlugins, preview, src) {
In CI, the file won't be available so it always
uses the most recent version.
CSS Branch handling:
- master: Uses production version of boostlook styling
- develop: Uses Tino Agency's redesign work for staging deployment
*/
async function fetchBoostlookCss () {
log('Fetching boostlook.css file...')
@@ -255,8 +251,7 @@ async function fetchBoostlookCss () {
const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css')
const cssFilePath = ospath.join(cssDir, 'boostlook.css')
const boostlookBranch = process.env.BOOSTLOOK_BRANCH || 'master'
const sourceFilename = boostlookBranch === 'develop' ? 'boostlook_tino.css' : 'boostlook.css'
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/${sourceFilename}`
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/boostlook.css`
if (skipBoostlook) {
log('Skipping boostlook.css download due to --skip-boostlook flag.')