Skip to content

Commit

Permalink
add back separate screener deploy for northstar
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Mar 16, 2021
1 parent 35669c0 commit 7e1fd8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ jobs:
yarn bundle --no-cache $(sinceArg)
displayName: bundle
- script: |
yarn workspace @fluentui/docs build
displayName: build FUI N* docs
## This runs regardless of scope, the app will adapt to the scope as well
- script: |
yarn workspace @fluentui/pr-deploy-site generate:site
displayName: generate PR Deploy Site
- publish: $(Build.ArtifactStagingDirectory)
artifact: Build-PR-$(Build.BuildNumber)

- task: AzureUpload@2
displayName: Upload PR deploy site
inputs:
Expand Down Expand Up @@ -123,7 +124,7 @@ jobs:
displayName: Upload N* doc site
inputs:
azureSubscription: $(azureSubscription)
BlobPrefix: $(deployBasePath)/react-northstar
BlobPrefix: $(deployBasePath)/react-northstar-screener
CacheControl: 'public, max-age=600000'
ContainerName: '$web'
SourcePath: 'packages/fluentui/docs/dist'
Expand Down
5 changes: 3 additions & 2 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ const __DEV__ = env === 'development';
const __PERF__ = !!process.env.PERF;
const __PROD__ = env === 'production';
let __BASENAME__ = process.env.DEPLOYBASEPATH
? // This needs a trailing slash or images won't work
`/${process.env.DEPLOYBASEPATH}/react-northstar/`
? // This needs a trailing slash or images won't work.
// The path is different for standard PR deploy and screener deploy.
`/${process.env.DEPLOYBASEPATH}/${process.env.SCREENER_BUILD ? 'react-northstar-screener' : 'react-northstar'}/`
: '/';

if (process.env.OFFICIALRELEASE) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/screener/screener.states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import path from 'path';

import getScreenerSteps from './screener.steps';

const baseUrl = `${process.env.DEPLOYURL}/react-northstar`;
const baseUrl = `${process.env.DEPLOYURL}/react-northstar-screener`;
const examplePaths = glob.sync('packages/fluentui/docs/src/examples/**/*.tsx', {
ignore: ['**/index.tsx', '**/*.knobs.tsx', '**/BestPractices/*.tsx', '**/Playground.tsx'],
});
Expand Down

0 comments on commit 7e1fd8b

Please sign in to comment.