Skip to content

Commit 2e37af3

Browse files
committed
Update CI build to deploy docs with rsync-antora-reference action
1 parent 2a2165c commit 2e37af3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ jobs:
7070
run: ../mvnw --no-transfer-progress resources:resources antora
7171

7272
- name: Deploy Reference docs
73-
env:
74-
DOCS_HOST: ${{ secrets.DOCS_HOST }}
75-
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
76-
DOCS_PATH: /opt/www/domains/spring.io/docs/htdocs/spring-shell
77-
run: |
78-
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST "cd $DOCS_PATH/reference && mkdir -p $PROJECT_VERSION"
79-
scp -i $HOME/.ssh/key -r spring-shell-docs/target/site/shell/$PROJECT_VERSION $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/reference/$PROJECT_VERSION
73+
uses: spring-io/spring-doc-actions/[email protected]
74+
with:
75+
docs-username: ${{ secrets.DOCS_USERNAME }}
76+
docs-host: ${{ secrets.DOCS_HOST }}
77+
docs-ssh-key: ${{ secrets.DOCS_SSH_KEY }}
78+
docs-ssh-host-key: ${{ secrets.DOCS_SSH_HOST_KEY }}
79+
site-path: spring-shell-docs/target/site/shell
8080

8181
- name: Bust Cloudflare Cache
8282
uses: spring-io/spring-doc-actions/[email protected]

0 commit comments

Comments
 (0)