Skip to content

Commit 199b0a9

Browse files
authored
Merge pull request #592 from scipp/fix-release-docs
[CI] ci: deploy docs to correct url
2 parents b0f6ca3 + 9a2cf9a commit 199b0a9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ jobs:
8181
- name: Prepare site
8282
run: |
8383
PACKAGE=${{ needs.determine-package.outputs.package }}
84+
SUBPATH=${PACKAGE#ess}
8485
git fetch origin gh-pages:gh-pages || true
8586
git worktree add gh-pages-site gh-pages || mkdir -p gh-pages-site
86-
rm -rf gh-pages-site/$PACKAGE
87-
cp -r packages/$PACKAGE/html gh-pages-site/$PACKAGE
87+
rm -rf gh-pages-site/$SUBPATH
88+
cp -r packages/$PACKAGE/html gh-pages-site/$SUBPATH
8889
cp docs/index.html gh-pages-site/index.html
8990
touch gh-pages-site/.nojekyll
9091
- name: Build search index

0 commit comments

Comments
 (0)