Skip to content

Commit b60b898

Browse files
committed
Code cleanup
1 parent 977cf02 commit b60b898

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
- name: Cache Dependencies
2222
uses: actions/cache@v4
2323
with:
24-
path: |
25-
~/.m2/repository/*
24+
path: ~/.m2/repository/*
2625
key: ${{ runner.OS }}-maven-${{ hashFiles('**/pom.xml') }}
2726

2827
# Maven command-line options:

.github/workflows/deploy_to_maven_central.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ jobs:
104104
- uses: actions/checkout@v4
105105
with:
106106
ref: ${{ needs.open-release.outputs.TAG }}
107+
token: ${{ secrets.WORKFLOW_TOKEN }}
108+
fetch-depth: 0
107109
- uses: actions/setup-java@v4
108110
with:
109111
distribution: zulu
@@ -132,29 +134,9 @@ jobs:
132134
-Dstaging_host="${{ env.STAGING_HOST }}"
133135
deploy -P release
134136
135-
document:
136-
name: Publish Javadoc documentation
137-
needs: [ open-release, deploy ]
138-
runs-on: ubuntu-latest
139-
steps:
140-
- uses: actions/checkout@v4
141-
with:
142-
ref: ${{ needs.open-release.outputs.TAG }}
143-
fetch-depth: 0
144-
token: ${{ secrets.WORKFLOW_TOKEN }}
145-
- uses: actions/setup-java@v4
146-
with:
147-
distribution: zulu
148-
java-version: 21
149-
150-
- name: Configure Git User
151-
run: |
152-
git config user.email "cowwoc2020@gmail.com"
153-
git config user.name "Gili Tzabari"
154-
155137
- name: Generate Javadoc
156138
run: |
157-
./mvnw --batch-mode -V -e verify javadoc:aggregate
139+
./mvnw --batch-mode -V -e javadoc:aggregate
158140
mkdir --parents "${{ needs.open-release.outputs.VERSION }}/docs"
159141
mv target/reports/apidocs "${{ needs.open-release.outputs.VERSION }}/docs/api"
160142
@@ -167,7 +149,7 @@ jobs:
167149
git push
168150
169151
close-release:
170-
needs: [ open-release, deploy, document ]
152+
needs: [ open-release, deploy ]
171153
runs-on: ubuntu-latest
172154
steps:
173155
- uses: actions/checkout@v4
@@ -207,8 +189,8 @@ jobs:
207189
- uses: actions/checkout@v4
208190
with:
209191
ref: ${{ github.ref }}
210-
fetch-depth: 0
211192
token: ${{ secrets.WORKFLOW_TOKEN }}
193+
fetch-depth: 0
212194
- uses: actions/setup-java@v4
213195
with:
214196
distribution: zulu

0 commit comments

Comments
 (0)