Skip to content

Commit

Permalink
Apidocs deploy fix (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
natke authored Mar 11, 2023
1 parent 930e009 commit 273a71f
Showing 1 changed file with 11 additions and 11 deletions.
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

0 comments on commit 273a71f

Please sign in to comment.