File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -145,14 +145,15 @@ jobs:
145145 - name : Snapshot the current version
146146 run : |
147147 cd website
148- VERSION=$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")
149- export MAJOR_MINOR=$(echo $VERSION | cut -d. -f1-2)
150- rm -rf versioned_docs/version-$MAJOR_MINOR
151- rm -rf versioned_sidebars/version-$MAJOR_MINOR-sidebars.json
148+ VERSION="$(python -c "import tomllib, pathlib; print(tomllib.loads(pathlib.Path('../pyproject.toml').read_text())['project']['version'])")"
149+ MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
150+ export MAJOR_MINOR
151+ rm -rf "versioned_docs/version-${MAJOR_MINOR}"
152+ rm -rf "versioned_sidebars/version-${MAJOR_MINOR}-sidebars.json"
152153 jq 'map(select(. != env.MAJOR_MINOR))' versions.json > tmp.json && mv tmp.json versions.json
153154 bash build_api_reference.sh
154- npx docusaurus docs:version $MAJOR_MINOR
155- npx docusaurus api:version $MAJOR_MINOR
155+ npx docusaurus docs:version " $MAJOR_MINOR"
156+ npx docusaurus api:version " $MAJOR_MINOR"
156157
157158 - name : Commit and push the version snapshot
158159 uses : EndBug/add-and-commit@v9
You can’t perform that action at this time.
0 commit comments