Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 60675e2

Browse files
committed
ci: docs: Attempt fix to build latest release
Signed-off-by: John Andersen <[email protected]>
1 parent e5e2c3b commit 60675e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.ci/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ function run_docs() {
134134

135135
# Doctests
136136
./scripts/doctest.sh
137+
git clean -fdx
138+
git reset --hard HEAD
137139

138140
# Make master docs
139141
master_docs="$(mktemp -d)"
@@ -147,9 +149,12 @@ function run_docs() {
147149
TEMP_DIRS+=("${release_docs}")
148150
rm -rf pages
149151
git clean -fdx
150-
git checkout $(git describe --abbrev=0 --tags --match '*.*.*')
152+
git reset --hard HEAD
153+
git checkout $(git tag --sort=committerdate | tail -n 1)
151154
git clean -fdx
152155
git reset --hard HEAD
156+
# Uninstall dffml
157+
"${PYTHON}" -m pip uninstall -y dffml
153158
# Remove .local to force install of correct dependency versions
154159
rm -rf ~/.local
155160
"${PYTHON}" -m pip install --prefix=~/.local -U -e "${SRC_ROOT}[dev]"

0 commit comments

Comments
 (0)