diff --git a/.github/workflows/javadoc.yml b/.github/workflows/javadoc.yml index e62aae09..bfc33346 100644 --- a/.github/workflows/javadoc.yml +++ b/.github/workflows/javadoc.yml @@ -16,12 +16,11 @@ concurrency: jobs: build: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 - name: Set up JDK uses: actions/setup-java@v4 with: @@ -39,7 +38,14 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: 'build/docs/javadoc' + path: './build/docs/javadoc' + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4