Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowwoc committed Jan 1, 2025
1 parent bf57d77 commit e71242a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy_to_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,23 @@ jobs:
deploy
# Must quote exclamation mark on bash: https://stackoverflow.com/a/27177197/14731
- name: Generate Javadoc
- name: Generate documentation
run: |
./mvnw --batch-mode -V -e -pl '!dropwizard,!jersey' verify javadoc:aggregate
VERSION=${{ needs.open-release.outputs.VERSION }}
rm -rf "docs/api/${VERSION}"
mkdir --parents "docs/api/${VERSION}"
mv target/reports/apidocs/* "docs/api/${VERSION}"
- name: Commit changes
- name: Commit documentation
run: |
git checkout ${{ github.ref_name }} -f
git add "docs/api/${{ needs.open-release.outputs.VERSION }}"
git commit -m "Publishing Javadoc for version ${{ needs.open-release.outputs.VERSION }}"
git commit -m "Publishing documentation for version ${{ needs.open-release.outputs.VERSION }}"
git push
javadoc:
name: Javadoc
document:
name: Document
needs: deploy
environment:
name: github-pages
Expand All @@ -190,7 +190,7 @@ jobs:

close-release:
name: Close release
needs: [ open-release, deploy, javadoc ]
needs: [ open-release, deploy, document ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
# Cleanup on failure: https://stackoverflow.com/a/74562058/14731
on-failure:
name: On failure
needs: [ open-release, deploy, javadoc, close-release ]
needs: [ open-release, deploy, document, close-release ]
runs-on: ubuntu-latest
if: ${{ failure() || cancelled() }}
steps:
Expand Down

0 comments on commit e71242a

Please sign in to comment.