Skip to content

Commit 8e48728

Browse files
committed
Update workflows
1 parent 4f0fe71 commit 8e48728

10 files changed

+17
-333
lines changed

.github/release-files-spec.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/artifactory-milestone-release.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/artifactory-staging.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
7-
description: "Release version"
7+
description: "Release version (5.1.x)"
88
required: true
99

1010
jobs:
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout source code
1616
uses: actions/checkout@v3
17+
with:
18+
ref: '5.1.x'
1719

1820
- name: Set up JDK 17
1921
uses: actions/setup-java@v3

.github/workflows/continuous-inspection.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/continuous-integration.yml renamed to .github/workflows/continuous-integration-51x.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
name: CI/CD build
1+
name: CI/CD build for 5.1.x
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "5.1.x" ]
66

77
jobs:
88
build:
9-
name: Build branch
9+
name: Build 5.1.x branch
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout source code
1313
uses: actions/checkout@v3
14+
with:
15+
ref: '5.1.x'
1416

1517
- name: Set up JDK 17
1618
uses: actions/setup-java@v3
@@ -50,7 +52,8 @@ jobs:
5052
DOCS_HOST: ${{ secrets.DOCS_HOST }}
5153
DOCS_PATH: ${{ secrets.DOCS_PATH }}
5254
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
53-
working-directory: spring-batch-docs
55+
working-directory: spring-batch-docs/target
5456
run: |
55-
cd target && unzip spring-batch-$PROJECT_VERSION-javadocs.zip
56-
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION
57+
unzip spring-batch-$PROJECT_VERSION-javadocs.zip
58+
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir -p $PROJECT_VERSION/api
59+
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$PROJECT_VERSION/api

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/documentation-upload.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseVersion:
7-
description: "Release version"
7+
description: "Release version (5.1.x)"
88
required: true
99

1010
jobs:
@@ -17,6 +17,8 @@ jobs:
1717

1818
- name: Checkout source code
1919
uses: actions/checkout@v3
20+
with:
21+
ref: '5.1.x'
2022

2123
- name: Set up JDK 17
2224
uses: actions/setup-java@v3
@@ -55,8 +57,8 @@ jobs:
5557
working-directory: spring-batch-docs/target
5658
run: |
5759
unzip spring-batch-$RELEASE_VERSION-javadocs.zip
58-
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir -p $RELEASE_VERSION
59-
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION
60+
ssh -i $HOME/.ssh/key $DOCS_USERNAME@$DOCS_HOST cd $DOCS_PATH && mkdir -p $RELEASE_VERSION/api
61+
scp -i $HOME/.ssh/key -r api $DOCS_USERNAME@$DOCS_HOST:$DOCS_PATH/$RELEASE_VERSION/api
6062
6163
unzip spring-batch-$RELEASE_VERSION-schemas.zip
6264
scp -i $HOME/.ssh/key batch/*.xsd $DOCS_USERNAME@$DOCS_HOST:$BATCH_SCHEMA_PATH

.github/workflows/maven-central-release.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/maven-central-stage.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)