File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : gh-pages.yml
1+ name : Deploy Javadocs to GitHub Pages
22permissions :
33 contents : write
44 pages : write
@@ -29,18 +29,16 @@ jobs:
2929 build-root-directory : pi4micronaut-utils/
3030 - name : Generate Javadocs
3131 working-directory : pi4micronaut-utils
32- run : ./gradlew copyJavadoc
33- - name : Upload artifact
34- uses : actions/upload-artifact@v4
35- with :
36- path : .
32+ run : ./gradlew javadoc
3733 deploy :
38- environment :
39- name : github-pages
40- url : ${{ steps.deployment.outputs.page_url }}
4134 runs-on : ubuntu-latest
4235 needs : build
4336 steps :
44- - name : Deploy to GitHub Pages
45- id : deployment
46- uses : actions/deploy-pages@v4
37+ - name : Deploy
38+ uses : peaceiris/actions-gh-pages@v4
39+ if : github.ref == 'refs/heads/develop'
40+ with :
41+ github_token : ${{ secrets.CI_GITHUB_TOKEN }}
42+ publish_dir : ./pi4micronaut-utils/build/docs/javadoc
43+ destination_dir : javadoc
44+ keep_files : true
You can’t perform that action at this time.
0 commit comments