Skip to content

Commit

Permalink
Update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Nov 27, 2023
1 parent f38bf32 commit 83c2c35
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 274 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/artifactory-milestone-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Artifactory Staging
name: Artifactory Staging for 5.0.x

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Release version"
description: "Release version (5.0.x)"
required: true

jobs:
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/continuous-inspection.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ jobs:
DOCS_HOST: ${{ secrets.DOCS_HOST }}
DOCS_PATH: ${{ secrets.DOCS_PATH }}
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
working-directory: spring-batch-docs
working-directory: spring-batch-docs/target
run: |
cd target && unzip spring-batch-$PROJECT_VERSION-docs.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
unzip spring-batch-$PROJECT_VERSION-docs.zip
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir -p $PROJECT_VERSION/api && mkdir -p $PROJECT_VERSION/reference
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION/api
scp -i $HOME/.ssh/key -r reference $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION/reference
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && rm 5.0.x-SNAPSHOT && ln -s $PROJECT_VERSION 5.0.x-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Documentation Upload
name: Documentation Upload for 5.0.x

on:
workflow_dispatch:
inputs:
releaseVersion:
description: "Release version"
description: "Release version (5.0.x)"
required: true

jobs:
Expand All @@ -17,6 +17,8 @@ jobs:

- name: Checkout source code
uses: actions/checkout@v3
with:
ref: '5.0.x'

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -25,6 +27,9 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Update release version
run: mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION

- name: Generate Java docs
run: mvn javadoc:aggregate

Expand Down Expand Up @@ -52,9 +57,10 @@ jobs:
working-directory: spring-batch-docs/target
run: |
unzip spring-batch-$RELEASE_VERSION-docs.zip
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir $RELEASE_VERSION
scp -i $HOME/.ssh/key -r api reference $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST rm current && ln -s $RELEASE_VERSION current
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir -p $RELEASE_VERSION/api && mkdir -p $RELEASE_VERSION/reference
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION/api
scp -i $HOME/.ssh/key -r reference $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION/reference
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && rm 5.0.x && ln -s $RELEASE_VERSION 5.0.x
unzip spring-batch-$RELEASE_VERSION-schemas.zip
scp -i $HOME/.ssh/key batch/*.xsd $DOCS_USERNAME@$DOCS_HOST:$BATCH_SCHEMA_PATH
Expand Down
81 changes: 0 additions & 81 deletions .github/workflows/maven-central-release.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/maven-central-stage.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/release-notes-generation.yml

This file was deleted.

0 comments on commit 83c2c35

Please sign in to comment.