Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apidocs deploy fix #59

Merged
merged 8 commits into from
Mar 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/publish-java-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
publish:
name: Generate Java docs
Expand All @@ -29,15 +32,12 @@ jobs:
with:
ref: gh-pages
clean: false
- name: Move API docs into target area
run: |
rm -rf docs/api/java
mv java/build/docs/javadoc docs/api/java
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
- name: Log source commit
run: echo $(git rev-parse --short HEAD) > java/build/docs/javadoc/version.txt
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages-pr
base: gh-pages
title: '[Automated]: Update Java API docs'
commit-message: 'Update Java API docs to commit ${{ steps.vars.outputs.sha_short }}'
add-paths: docs/api/java
branch: gh-pages
folder: java/build/docs/javadoc
target-folder: docs/api/java
clean: true