From 955c292442630d55a835880432834e8233097079 Mon Sep 17 00:00:00 2001 From: Daniel Milnes Date: Tue, 3 Sep 2024 19:18:51 -0400 Subject: [PATCH] Try the third party uploader we use elsewhere --- .github/workflows/gradle.yml | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f55739f..fbf7252 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -106,29 +106,9 @@ jobs: - name: Build Javadoc run: ./gradlew javadoc - - name: Publish Javadoc - uses: actions/upload-artifact@v4 + - name: Deploy Pages Content + uses: JamesIves/github-pages-deploy-action@v4 + # https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable + if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} with: - path: build/docs/javadoc - name: github-pages - - publish_site: - runs-on: ubuntu-latest - permissions: - id-token: write - contents: read - pages: write - needs: - - javadoc - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - name: Enable debug logging - run: | - echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV - echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + folder: build/docs/javadoc \ No newline at end of file