Skip to content

Commit

Permalink
feat(build): publish javadocs to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed Feb 21, 2022
1 parent 7813b80 commit 86bfbf4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
22 changes: 22 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,28 @@ jobs:
with:
files: "**/build/test-results/**/*.xml"

javadoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: temurin

- name: Build Javadocs
run: ./gradlew javadoc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy 🚀
uses: JamesIves/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: javadocs
folder: core/build/docs/javadoc
release:
needs: [ build, test ]
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || github.ref == 'refs/heads/next'
Expand Down

0 comments on commit 86bfbf4

Please sign in to comment.