diff --git a/.github/workflows/deploy_microsite.yml b/.github/workflows/deploy_microsite.yml index 0a52cac742..aa5d06e4ba 100644 --- a/.github/workflows/deploy_microsite.yml +++ b/.github/workflows/deploy_microsite.yml @@ -3,7 +3,6 @@ on: push: branches: - master - pull_request: permissions: contents: read @@ -185,21 +184,10 @@ jobs: name: stable-reference path: docs/reference - - name: debug before - run: | - ls docs - ls docs/releases - - name: grab lastest releases docs - uses: actions/checkout@v4 - with: - clean: false - sparse-checkout: docs/releases - - - name: debug after run: | - ls docs - ls docs/releases + git fetch origin master --depth 1 + git checkout FETCH_HEAD -- docs/releases - name: generate stable docs run: yarn docusaurus docs:version stable diff --git a/microsite/lighthouserc.js b/microsite/lighthouserc.ts similarity index 97% rename from microsite/lighthouserc.js rename to microsite/lighthouserc.ts index f0024ee0b3..5775bd19ee 100644 --- a/microsite/lighthouserc.js +++ b/microsite/lighthouserc.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -var sidebars = require('./sidebars.json'); +import sidebars from './sidebars'; -module.exports = { +export default { ci: { collect: { url: [