Skip to content

Commit

Permalink
test another gh action change
Browse files Browse the repository at this point in the history
  • Loading branch information
colegoldsmith committed Dec 7, 2023
1 parent f69aef7 commit 26d313d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-bundle-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
id: extract_branch

- name: Build UI Bundle Preview
env:
UI_ROOT_PATH_PREFIX: ${{ github.event.repository.name }}/${{ steps.extract_branch.outputs.draft_branch }}
run: |
set -o pipefail
gulp lint |& tee $GITHUB_WORKSPACE/build.log
Expand Down
12 changes: 7 additions & 5 deletions gulp.d/tasks/build-preview-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ module.exports = (src, previewSrc, previewDest, sink = () => map()) => (done) =>
// It differs from the Antora Default UI by allowing for an optional UI_ROOT_PATH_PREFIX.
// This environment variable is set during build to add a prefix to the {{ uiRootPath }} variable.
// This enables us to have preview builds that live in their own subdirectory on GitHub Pages.
let uiRootPath = path.join(siteRootPath, '_')
if (uiModel.env.UI_ROOT_PATH_PREFIX) {
uiRootPath = path.join('/', uiModel.env.UI_ROOT_PATH_PREFIX, uiRootPath)
}
uiModel.uiRootPath = uiRootPath
// let uiRootPath = path.join(siteRootPath, '_')
// if (uiModel.env.UI_ROOT_PATH_PREFIX) {
// uiRootPath = path.join('/', uiModel.env.UI_ROOT_PATH_PREFIX, uiRootPath)
// }
// uiModel.uiRootPath = uiRootPath

uiModel.uiRootPath = path.join(siteRootPath, '_')

if (file.stem === '404') {
uiModel.page = { layout: '404', title: 'Page Not Found' }
Expand Down

0 comments on commit 26d313d

Please sign in to comment.