Skip to content

Commit cf463c8

Browse files
committed
Improve the Deploy docs steps of Docs uplaod GH action
1 parent 4e3bba7 commit cf463c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/documentation-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Generate Java docs
2929
run: mvn javadoc:aggregate
3030

31-
- name: Generate Reference docs
31+
- name: Generate assembly
3232
working-directory: spring-ai-docs
3333
run: mvn assembly:single
3434

@@ -50,7 +50,7 @@ jobs:
5050
working-directory: spring-ai-docs/target
5151
run: |
5252
unzip spring-ai-$RELEASE_VERSION-docs.zip
53-
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST "cd $DOCS_PATH && mkdir $RELEASE_VERSION"
53+
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST "cd $DOCS_PATH && mkdir -p $RELEASE_VERSION/api"
5454
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION
5555
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST "rm current && ln -s $RELEASE_VERSION current"
5656

0 commit comments

Comments
 (0)