Skip to content

Commit

Permalink
Add initial javadoc upload workflow
Browse files Browse the repository at this point in the history
Designed to not work yet, just testing if it outputs correct stuff as act is broken for me
  • Loading branch information
booky10 committed Jul 10, 2024
1 parent 150736b commit 3cfb1c5
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,27 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: fabric-build
path: fabric/build/libs
path: fabric/build/libs

javadoc:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write

needs:
- build

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

- 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: Upload build artifacts pages
uses: actions/upload-artifact@v4
with:
name: pages-build
path: ./

0 comments on commit 3cfb1c5

Please sign in to comment.