ci: fix typo in trigger (#37) #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "publish-javadoc" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-javadoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out the repository" | |
uses: actions/checkout@v4 | |
- name: "Setup Java and Maven" | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: "Build JavaDoc using Maven" | |
run: mvn javadoc:javadoc | |
- name: "Upload JavaDoc as an artifact" | |
id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: target/reports/apidocs | |
deploy-github-pages: | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: generate-javadoc | |
steps: | |
- name: "Deploy to GitHub Pages" | |
id: deployment | |
uses: actions/deploy-pages@v4 |