From 5999b6188868fa9fe33991946b8de1a7d8b86325 Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Mon, 25 Nov 2024 12:32:37 +0000 Subject: [PATCH] Only build and inspect if Python 3.9 --- .github/workflows/prerelease.yml | 2 ++ webpack.config.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 7d64990aa..4343c959c 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -42,9 +42,11 @@ jobs: - name: "Build and inspect package 📦" uses: hynek/build-and-inspect-python-package@v2 + if: matrix.python-version == '3.9' id: baipp - run: echo Packages can be found at ${{ steps.baipp.outputs.dist }} + if: matrix.python-version == '3.9' # If either the docs build or the tests resulted in an error, create an issue to note it - name: "Create an issue if failure" diff --git a/webpack.config.js b/webpack.config.js index 621196953..70405300d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -183,9 +183,8 @@ module.exports = (env, argv) => { // that builds the theme: // 1. command to package theme // a. compile translations - // The theme builder calls `npm run-script build`, which we have configured - // to call `webpack --mode=production` (which calls this file), which is why - // we compile the translations here. + // The theme builder calls `npm run-script build` (`webpack --mode=production` per our + // package.json) so we compile the translations here. if (argv.mode === 'production') { exec(`pybabel compile -d ${localePath} -D sphinx`, (error, stdout, stderr) => { if (error) {