Skip to content

Commit

Permalink
Try the third party uploader we use elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
thebeanogamer committed Sep 3, 2024
1 parent d0dfd1f commit 955c292
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
folder: build/docs/javadoc

0 comments on commit 955c292

Please sign in to comment.