Skip to content

Deploy static content to Pages #12

Deploy static content to Pages

Deploy static content to Pages #12

Workflow file for this run

name: Deploy static content to Pages
on:
release:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: 'gradle'
- name: Build Java Documentation
run: |
chmod +x gradlew;
./gradlew api:javadoc;
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: api/build/docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4