Skip to content

Commit

Permalink
Fix continuous integration workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Sep 8, 2023
1 parent 51417e1 commit 7345056
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI/CD build

on:
push:
branches: [ "main", "5.0.x" ]
branches: [ "main" ]

jobs:
build:
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Generate Java docs
run: mvn javadoc:aggregate

- name: Generate Reference docs
- name: Generate Assembly
working-directory: spring-batch-docs
run: mvn site

Expand All @@ -45,13 +45,12 @@ jobs:
chmod 600 "$HOME/.ssh/key"
echo "$DOCS_SSH_HOST_KEY" > "$HOME/.ssh/known_hosts"
- name: Deploy docs
- name: Deploy Java docs
env:
DOCS_HOST: ${{ secrets.DOCS_HOST }}
DOCS_PATH: ${{ secrets.DOCS_PATH }}
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
working-directory: spring-batch-docs
run: |
cd target && unzip spring-batch-$PROJECT_VERSION-docs.zip
cd target && unzip spring-batch-$PROJECT_VERSION-javadocs.zip
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION
scp -i $HOME/.ssh/key -r reference $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION

0 comments on commit 7345056

Please sign in to comment.