Skip to content

Commit

Permalink
Remove javadoc pages deployment
Browse files Browse the repository at this point in the history
Will be handled in different repo, see https://github.com/packetevents/packetevents.github.io
  • Loading branch information
booky10 committed Jul 11, 2024
1 parent 7a35050 commit 13d6437
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -63,46 +62,3 @@ jobs:
with:
name: fabric-build
path: fabric/build/libs

extract-javadoc:
if: github.repository == 'retrooper/packetevents' && 'tag' == github.event.ref_type

runs-on: ubuntu-latest
permissions:
contents: read

needs:
- build

steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Extract Javadoc Jars
run: |
ls | xargs -L 1 | awk '/.+-javadoc\.jar/{print $0}' | awk 'BEGIN{FS=OFS="-"}{NF-=3; print}' | awk '!NF || !seen[$0]++' | awk '{cmd="mkdir "$0" && unzip -d ./"$0"/ "$0"-*-javadoc.jar"; print cmd}' | tr '\n' ';' | sh && rm *'.jar'
- name: Move api javadoc to root directory
run: mv api/* ./ && rmdir api

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./

deploy-javadoc:
needs: extract-javadoc

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 13d6437

Please sign in to comment.