Skip to content

Commit

Permalink
Add GHA workflow to deploy Javadoc to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderploegsma committed Jan 22, 2024
1 parent df182d8 commit c1e0661
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: GitHub Pages

on:
push:
# TODO: uncomment before merging
# branches:
# - main

jobs:
build:
name: Build Javadoc
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93
with:
java-version: "21"
distribution: "temurin"
- run: ./gradlew --no-daemon javadoc
- uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8
with:
path: build/docs/javadoc

deploy:
needs: build
permissions:
pages: write
id-token: write

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

runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@87c3283f01cd6fe19a0ab93a23b2f6fcba5a8e42

0 comments on commit c1e0661

Please sign in to comment.