bld/.github/workflows/pages.yml
Erik C. Thauvin bd10018aa8
Some checks are pending
bld-ci / build-linux (17) (push) Waiting to run
bld-ci / build-linux (20) (push) Waiting to run
bld-ci / build-linux (21) (push) Waiting to run
bld-ci / build-linux (22) (push) Waiting to run
bld-ci / build-linux (23) (push) Waiting to run
bld-ci / build-linux (24) (push) Waiting to run
bld-ci / build-linux (25) (push) Waiting to run
bld-ci / build-macos (17) (push) Waiting to run
bld-ci / build-macos (20) (push) Waiting to run
bld-ci / build-macos (21) (push) Waiting to run
bld-ci / build-macos (22) (push) Waiting to run
bld-ci / build-macos (23) (push) Waiting to run
bld-ci / build-macos (24) (push) Waiting to run
bld-ci / build-macos (25) (push) Waiting to run
bld-ci / build-windows (17) (push) Waiting to run
bld-ci / build-windows (20) (push) Waiting to run
bld-ci / build-windows (21) (push) Waiting to run
bld-ci / build-windows (22) (push) Waiting to run
bld-ci / build-windows (23) (push) Waiting to run
bld-ci / build-windows (24) (push) Waiting to run
bld-ci / build-windows (25) (push) Waiting to run
javadocs-pages / deploy (push) Waiting to run
Must checkout submodules in publish workflow (#84)
2026-06-24 20:31:27 -07:00

68 lines
1.5 KiB
YAML

name: javadocs-pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
if: github.repository == 'rife2/bld'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v7
with:
clean: true
submodules: 'true'
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: 'corretto'
java-version: 17
- name: Cache bld dependencies
id: cache-bld
uses: actions/cache@v6
with:
path: lib
key: ${{ runner.os }}-bld-pages-lib
- name: Build Javadocs
run: ./bld clean compile javadoc
- name: Setup Pages
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
# Upload generated Javadocs repository
path: 'build/javadoc/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5