diff --git a/.github/workflows/build-and-deploy-javadoc.yml b/.github/workflows/build-and-deploy-javadoc.yml index 63c55f5..734f969 100644 --- a/.github/workflows/build-and-deploy-javadoc.yml +++ b/.github/workflows/build-and-deploy-javadoc.yml @@ -114,3 +114,21 @@ jobs: fi env: PAT_TOKEN: ${{ secrets.PAT_TOKEN }} + + deploy-javadoc: + runs-on: ubuntu-latest + needs: commit-javadoc + + steps: + - name: Checkout gh-pages branch + uses: actions/checkout@v3 + with: + repository: processing/processing4-javadocs + ref: gh-pages + fetch-depth: 0 + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs