'_private directory doesn't get included in GitHub pages build for javadoc
The directory _private and its contents don't get included in the GitHub pages build. The java doc for the project has a _private directory, whose content don't end up in the GitHub pages build. When a PR is merged, that the action automatically builds the develop branch and pushes the built site to the gh-pages branch, but I can't see the directory's content there.
Solution 1:[1]
the action automatically builds the develop branch and pushes the built site to the gh-pages branch
It depends which action.
For instance, this action uses the JamesIves/github-pages-deploy-action step, after generating the javadoc.
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
java-version: ${{ inputs.java-version }}
distribution: 'adopt'
- name: Generate Javadoc
run: mvn org.apache.maven.plugins:maven-javadoc-plugin:3.3.1:aggregate
shell: bash
- name: Deploy ?
uses: JamesIves/[email protected]
with:
token: ${{ inputs.GITHUB_TOKEN }}
branch: ${{ inputs.javadoc-branch }}
clean: true
folder: target/site/apidocs
target-folder: ${{ inputs.target-folder }}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | VonC |
