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: | run: |
set -x set -x
# Comment out dynamic branch selection for now # Comment out dynamic branch selection for now
# BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}" BOOSTLOOK_BRANCH="${{ (startsWith(github.ref, 'refs/heads/develop') && 'develop') || 'master' }}"
export BOOSTLOOK_BRANCH="${{ github.event.inputs.boostlook_branch || 'master' }}" export BOOSTLOOK_BRANCH
./build.sh ./build.sh
- name: Setup Ninja - 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 In CI, the file won't be available so it always
uses the most recent version. 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 () { async function fetchBoostlookCss () {
log('Fetching boostlook.css file...') log('Fetching boostlook.css file...')
@@ -255,8 +251,7 @@ async function fetchBoostlookCss () {
const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css') const cssDir = ospath.join(__dirname, '..', '..', 'src', 'css')
const cssFilePath = ospath.join(cssDir, 'boostlook.css') const cssFilePath = ospath.join(cssDir, 'boostlook.css')
const boostlookBranch = process.env.BOOSTLOOK_BRANCH || 'master' 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}/boostlook.css`
const url = `https://raw.githubusercontent.com/boostorg/boostlook/${boostlookBranch}/${sourceFilename}`
if (skipBoostlook) { if (skipBoostlook) {
log('Skipping boostlook.css download due to --skip-boostlook flag.') log('Skipping boostlook.css download due to --skip-boostlook flag.')