Skip to content

Commit 5bfd6c3

Browse files
authored
Use a single job in the javadocs deploy workflow (#22)
2 parents c76bf51 + 9c89254 commit 5bfd6c3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ concurrency:
1616

1717
jobs:
1818
build:
19-
name: Build JavaDocs
19+
name: Build JavaDocs and deploy to GitHub Pages
2020
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{steps.deployment.outputs.page_url}}
2124
steps:
2225
- uses: actions/checkout@v3
2326
- name: Set up JDK 17
@@ -28,14 +31,6 @@ jobs:
2831
cache: maven
2932
- name: Generate Javadoc
3033
run: mvn -B package --file pom.xml
31-
deploy:
32-
name: Deploy to GitHub Pages
33-
environment:
34-
name: github-pages
35-
url: ${{steps.deployment.outputs.page_url}}
36-
runs-on: ubuntu-latest
37-
needs: build
38-
steps:
3934
- name: Setup Pages
4035
uses: actions/configure-pages@v4
4136
- name: Upload artifact

0 commit comments

Comments
 (0)